From 167e940e78d8bd7f9a5daa84d7c81bd6d03621b5 Mon Sep 17 00:00:00 2001 From: billwanjohi Date: Wed, 22 Jul 2015 20:46:42 +0000 Subject: [PATCH] iam: don't delete passwords by default --- lib/ansible/modules/cloud/amazon/iam.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/iam.py b/lib/ansible/modules/cloud/amazon/iam.py index 9850aa22564..9be189620c2 100644 --- a/lib/ansible/modules/cloud/amazon/iam.py +++ b/lib/ansible/modules/cloud/amazon/iam.py @@ -291,12 +291,6 @@ def update_user(module, iam, name, new_name, new_path, key_state, key_count, key module.fail_json(changed=False, msg="Passsword doesn't conform to policy") else: module.fail_json(msg=error_msg) - else: - try: - iam.delete_login_profile(name) - changed = True - except boto.exception.BotoServerError: - pass if key_state == 'create': try: