Exemplo n.º 1
0
 def action_func(self, params):
     """Entry point for all actions subclasses
     """
     APIClient.debug_mode(debug=params.debug)
     self.serializer = Serializer.from_params(params)
     if self.flag_func_map is not None:
         for flag, method in self.flag_func_map:
             if flag is None or getattr(params, flag):
                 method(params)
                 break
Exemplo n.º 2
0
 def action_func(self, params):
     """Entry point for all actions subclasses
     """
     APIClient.debug_mode(debug=params.debug)
     self.serializer = Serializer.from_params(params)
     if self.flag_func_map is not None:
         for flag, method in self.flag_func_map:
             if flag is None or getattr(params, flag):
                 method(params)
                 break
Exemplo n.º 3
0
    def action_func(self, params):
        """Entry point for all actions subclasses
        """
        APIClient.debug_mode(debug=params.debug)
        if getattr(params, 'user') and getattr(params, 'password'):
            APIClient.user = params.user
            APIClient.password = params.password
            APIClient.initialize_keystone_client()

        self.serializer = Serializer.from_params(params)
        if self.flag_func_map is not None:
            for flag, method in self.flag_func_map:
                if flag is None or getattr(params, flag):
                    method(params)
                    break
Exemplo n.º 4
0
    def action_func(self, params):
        """Entry point for all actions subclasses
        """
        APIClient.debug_mode(debug=params.debug)
        if getattr(params, 'user') and getattr(params, 'password'):
            APIClient.user = params.user
            APIClient.password = params.password
            APIClient.initialize_keystone_client()

        self.serializer = Serializer.from_params(params)
        if self.flag_func_map is not None:
            for flag, method in self.flag_func_map:
                if flag is None or getattr(params, flag):
                    method(params)
                    break
Exemplo n.º 5
0
    def action_func(self, params):
        """Entry point for all actions subclasses
        """
        APIClient.debug_mode(debug=params.debug)
        if getattr(params, "user") and getattr(params, "password"):
            APIClient.user = params.user
            APIClient.password = params.password
            # tenant is set by default to 'admin' in parser.add_argument
            APIClient.tenant = params.tenant
            APIClient.initialize_keystone_client()

        self.serializer = Serializer.from_params(params)
        if self.flag_func_map is not None:
            for flag, method in self.flag_func_map:
                if flag is None or getattr(params, flag):
                    method(params)
                    break