code: def cmd_full_return(
              self,
              tgt,
              fun,
              arg=(),
              timeout=None,
              tgt_type='glob',
              ret='',
              verbose=False,
              kwarg=None,
              **kwargs):
          '''
          Execute a salt command and return
          '''
          was_listening = self.event.cpub
  
          try:
              pub_data = self.run_job(
                  tgt,
                  fun,
                  arg,
                  tgt_type,
                  ret,
                  timeout,
                  kwarg=kwarg,
                  listen=True,
                  **kwargs)
  
              if not pub_data:
                  return pub_data
  
              return (self.get_cli_static_event_returns(pub_data['jid'],
                                                        pub_data['minions'],
                                                        timeout,
                                                        tgt,
                                                        tgt_type,
                                                        verbose))
          finally:
              if not was_listening:
                  self.event.close_pub(f cmd_full_return(
              self,
              tgt,
              fun,
              arg=(),
              timeout=None,
              tgt_type='glob',
              ret='',
              verbose=False,
              kwarg=None,
              **kwargs):
          '''
          Execute a salt command and return
          '''
          was_listening = self.event.cpub
  
          try:
              pub_data = self.run_job(
                  tgt,
                  fun,
                  arg,
                  tgt_type,
                  ret,
                  timeout,
                  kwarg=kwarg,
                  listen=True,
                  **kwargs)
  
              if not pub_data:
                  return pub_data
  
              return (self.get_cli_static_event_returns(pub_data['jid'],
                                                        pub_data['minions'],
                                                        timeout,
                                                        tgt,
                                                        tgt_type,
                                                        verbose))
          finally:
              if not was_listening:
                  self.event.close_pub()
docs: Execute a salt command and return