code: def get_host_system_failfast(
              self,
              name,
              verbose=False,
              host_system_term='HS'
      ):
          
          if verbose:
              print("Finding HostSystem named %s..." % name)
  
          hs = self.get_host_system(name)
  
          if hs is None:
              print("Error: %s '%s' does not exist" % (host_system_term, name))
              sys.exit(1)
  
          if verbose:
              print("Found HostSystem: {0} Name: {1}" % (hs, hs.name))
  
          return hs
docs: Get a HostSystem object
          fail fast if the object isn't a valid reference