(self)
return result
添加用户
        :return: 返回执行状态
添加用户
        :return: 返回执行状态
添加用户 : return : 返回执行状态
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
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