[aws] remove unused variable in iam_user module (#41695)

This commit is contained in:
Ryan Brown 2018-06-19 14:32:56 -04:00 committed by Sloane Hertel
parent 1118e441e9
commit 67d6e8177e

View file

@ -166,7 +166,7 @@ def create_or_update_user(connection, module):
module.exit_json(changed=True)
try:
user = connection.create_user(**params)
connection.create_user(**params)
changed = True
except ClientError as e:
module.fail_json(msg="Unable to create user: {0}".format(to_native(e)), exception=traceback.format_exc(),