code: def _call_salt_command(self,
                             fun,
                             args,
                             kwargs,
                             assertion_section=None):
          '''
          Generic call of salt Caller command
          '''
          value = False
          try:
              if args and kwargs:
                  value = self.salt_lc.cmd(fun, *args, **kwargs)
              elif args and not kwargs:
                  value = self.salt_lc.cmd(fun, *args)
              elif not args and kwargs:
                  value = self.salt_lc.cmd(fun, **kwargs)
              else:
                  value = self.salt_lc.cmd(fun)
          except salt.exceptions.SaltException:
              raise
          except Exception:
              raise
          if isinstance(value, dict) and assertion_section:
              return value.get(assertion_section, False)
          else:
              return valuf _call_salt_command(self,
                             fun,
                             args,
                             kwargs,
                             assertion_section=None):
          '''
          Generic call of salt Caller command
          '''
          value = False
          try:
              if args and kwargs:
                  value = self.salt_lc.cmd(fun, *args, **kwargs)
              elif args and not kwargs:
                  value = self.salt_lc.cmd(fun, *args)
              elif not args and kwargs:
                  value = self.salt_lc.cmd(fun, **kwargs)
              else:
                  value = self.salt_lc.cmd(fun)
          except salt.exceptions.SaltException:
              raise
          except Exception:
              raise
          if isinstance(value, dict) and assertion_section:
              return value.get(assertion_section, False)
          else:
              return value
docs: Generic call of salt Caller command