parameters: (self)
docstring: Return the result of ``condor_who -quick``,
          as a :class:`classad.ClassAd`.
          If ``condor_who -quick`` fails, or the output can't be parsed into
          a sensible who ad, this method returns an empty ad.
docstring_summary: Return the result of ``condor_who -quick``,
          as a :class:`classad.ClassAd`.
          If ``condor_who -quick`` fails, or the output can't be parsed into
          a sensible who ad, this method returns an empty ad.
docstring_tokens: Return the result of condor_who - quick as a : class : classad . ClassAd . If condor_who - quick fails or the output can t be parsed into a sensible who ad this method returns an empty ad .
function: def who(self) -> classad.ClassAd:
          """
          Return the result of ``condor_who -quick``,
          as a :class:`classad.ClassAd`.
          If ``condor_who -quick`` fails, or the output can't be parsed into
          a sensible who ad, this method returns an empty ad.
          """
          who = self.run_command(["condor_who", "-quick"])
  
          try:
              parsed = classad.parseOne(who.stdout)
  
              # If there's no MASTER key in the parsed ad, it indicates
              # that we actually got the special post-shutdown message
              # from condor_who and should act like there's nothing there.
              if "MASTER" not in parsed:
                  return classad.ClassAd()
  
              return parsed
          except Exception:
              return classad.ClassAd()
function_tokens: def who ( self ) -> classad . ClassAd : who = self . run_command ( [ "condor_who" , "-quick" ] ) try : parsed = classad . parseOne ( who . stdout ) # If there's no MASTER key in the parsed ad, it indicates # that we actually got the special post-shutdown message # from condor_who and should act like there's nothing there. if "MASTER" not in parsed : return classad . ClassAd ( ) return parsed except Exception : return classad . ClassAd ( )