|
|
@ -582,25 +582,24 @@ def main():
|
|
|
|
changed = False
|
|
|
|
changed = False
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
orig_group_list = [gl['group_name'] for gl in iam.get_all_groups().
|
|
|
|
orig_group_list = [gl['group_name'] for gl in iam.get_all_groups().
|
|
|
|
list_groups_result.
|
|
|
|
list_groups_result.
|
|
|
|
groups]
|
|
|
|
groups]
|
|
|
|
|
|
|
|
|
|
|
|
orig_user_list = [ul['user_name'] for ul in iam.get_all_users().
|
|
|
|
orig_user_list = [ul['user_name'] for ul in iam.get_all_users().
|
|
|
|
list_users_result.
|
|
|
|
list_users_result.
|
|
|
|
users]
|
|
|
|
users]
|
|
|
|
|
|
|
|
|
|
|
|
orig_role_list = [rl['role_name'] for rl in iam.list_roles().list_roles_response.
|
|
|
|
orig_role_list = [rl['role_name'] for rl in iam.list_roles().list_roles_response.
|
|
|
|
list_roles_result.
|
|
|
|
list_roles_result.
|
|
|
|
roles]
|
|
|
|
roles]
|
|
|
|
|
|
|
|
|
|
|
|
orig_prof_list = [ap['instance_profile_name'] for ap in iam.list_instance_profiles().
|
|
|
|
orig_prof_list = [ap['instance_profile_name'] for ap in iam.list_instance_profiles().
|
|
|
|
list_instance_profiles_response.
|
|
|
|
list_instance_profiles_response.
|
|
|
|
list_instance_profiles_result.
|
|
|
|
list_instance_profiles_result.
|
|
|
|
instance_profiles]
|
|
|
|
instance_profiles]
|
|
|
|
|
|
|
|
except boto.exception.BotoServerError, err:
|
|
|
|
except boto.exception.BotoServerError, err:
|
|
|
|
module.fail_json(msg=err.message)
|
|
|
|
module.fail_json(msg=err.message)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if iam_type == 'user':
|
|
|
|
if iam_type == 'user':
|
|
|
|
been_updated = False
|
|
|
|
been_updated = False
|
|
|
|