parameters: (self)
return_statement: return result
docstring: 添加用户
          :return: 返回执行状态
docstring_summary: 添加用户
          :return: 返回执行状态
docstring_tokens: 添加用户 : return : 返回执行状态
function: def UserAdd(self):
          """
          添加用户
          :return: 返回执行状态
          """
          self.data.get("fun")
          self.data.get("node")
          auth = self.data.get("auth")
          list_all = ApiRun({'fun': self.data.get("fun"), 'tgt': self.data.get("node"), 'arg': self.data.get("arg")},
                            self.url, {'X-Auth-Token': self.data.get("token")})
  
          list_all = list_all.run()
          result = list_all["return"][0]
          if int(auth) == 1:
              group_data = ["admin", self.data.get("user")]
              list_all = ApiRun({'fun': "group.adduser", 'tgt': self.data.get("node"), 'arg': group_data},
                                self.url, {'X-Auth-Token': self.data.get("token")})
  
              list_all.run()
          return result
function_tokens: def UserAdd ( self ) : self . data . get ( "fun" ) self . data . get ( "node" ) auth = self . data . get ( "auth" ) list_all = ApiRun ( { 'fun' : self . data . get ( "fun" ) , 'tgt' : self . data . get ( "node" ) , 'arg' : self . data . get ( "arg" ) } , self . url , { 'X-Auth-Token' : self . data . get ( "token" ) } ) list_all = list_all . run ( ) result = list_all [ "return" ] [ 0 ] if int ( auth ) == 1 : group_data = [ "admin" , self . data . get ( "user" ) ] list_all = ApiRun ( { 'fun' : "group.adduser" , 'tgt' : self . data . get ( "node" ) , 'arg' : group_data } , self . url , { 'X-Auth-Token' : self . data . get ( "token" ) } ) list_all . run ( ) return result