Exemplo n.º 1
0
 def postprocess(self, result):
     if self.args.get('create_accesskey') or self.args.get('write_config'):
         obj = CreateAccessKey.from_other(
             self, UserName='******',
             DelegateAccount=result['Account']['AccountId'],
             write_config=self.args.get('write_config'),
             domain=self.args.get('domain'))
         key_result = obj.main()
         result.update(key_result)
Exemplo n.º 2
0
 def postprocess(self, result):
     if self.args.get('create_accesskey') or self.args.get('write_config'):
         obj = CreateAccessKey.from_other(
             self,
             UserName='******',
             DelegateAccount=result['Account']['AccountId'],
             write_config=self.args.get('write_config'),
             domain=self.args.get('domain'))
         key_result = obj.main()
         result.update(key_result)
Exemplo n.º 3
0
 def postprocess(self, result):
     if self.args.get('group_name'):
         obj = AddUserToGroup.from_other(
             self, UserName=self.args['UserName'],
             GroupName=self.args['group_name'],
             DelegateAccount=self.params['DelegateAccount'])
         obj.main()
     if self.args.get('create_accesskey'):
         obj = CreateAccessKey.from_other(
             self, UserName=self.args['UserName'],
             DelegateAccount=self.params['DelegateAccount'])
         key_result = obj.main()
         result.update(key_result)
Exemplo n.º 4
0
 def postprocess(self, result):
     if self.args.get('group_name'):
         obj = AddUserToGroup(
             config=self.config, service=self.service,
             UserName=self.args['UserName'],
             GroupName=self.args['group_name'],
             DelegateAccount=self.params['DelegateAccount'])
         obj.main()
     if self.args.get('create_accesskey'):
         obj = CreateAccessKey(
             config=self.config, service=self.service,
             UserName=self.args['UserName'],
             DelegateAccount=self.params['DelegateAccount'])
         key_result = obj.main()
         result.update(key_result)
Exemplo n.º 5
0
 def postprocess(self, result):
     if self.args.get('group_name'):
         obj = AddUserToGroup.from_other(
             self, UserName=self.args['UserName'],
             GroupName=self.args['group_name'],
             DelegateAccount=self.params['DelegateAccount'])
         obj.main()
     if self.args.get('create_accesskey') or self.args.get('write_config'):
         obj = CreateAccessKey.from_other(
             self, UserName=self.args['UserName'],
             DelegateAccount=self.params['DelegateAccount'],
             write_config=self.args.get('write_config'),
             domain=self.args.get('domain'),
             set_default_user=self.args.get('set_default_user'))
         key_result = obj.main()
         result.update(key_result)
Exemplo n.º 6
0
 def postprocess(self, result):
     if self.args.get('group_name'):
         obj = AddUserToGroup.from_other(
             self,
             UserName=self.args['UserName'],
             GroupName=self.args['group_name'],
             DelegateAccount=self.params['DelegateAccount'])
         obj.main()
     if self.args.get('create_accesskey') or self.args.get('write_config'):
         obj = CreateAccessKey.from_other(
             self,
             UserName=self.args['UserName'],
             DelegateAccount=self.params['DelegateAccount'],
             write_config=self.args.get('write_config'),
             domain=self.args.get('domain'))
         key_result = obj.main()
         result.update(key_result)