Beispiel #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)
Beispiel #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)
Beispiel #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)
 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)
Beispiel #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)
Beispiel #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)