code: def get_hostname_text(self):
          
          # FIXME: fix it, too complex logic
          try:
              hostname_text = self.device.send('hostname', timeout=10)
              if hostname_text:
                  self.device.hostname = hostname_text.splitlines()[0]
                  return hostname_text
          except CommandError:
              self.log("Non Unix jumphost type detected")
              return None
docs: Return hostname information from the Unix host.