Skip to content

Commit

Permalink
Big Black PR (ansible-collections#1784)
Browse files Browse the repository at this point in the history
* Black prep

* Black

* changelog

* Fix pylint unused-import in tests

* Split SSM connection plugin changes

* disable glue tests - bucket's missing

* Disable s3_logging and s3_sync tests

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2c4575c
  • Loading branch information
tremble authored and alinabuzachis committed Oct 2, 2023
1 parent 5963f85 commit d501bb4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/modules/iam_mfa_device_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@


def list_mfa_devices(connection, module):
user_name = module.params.get('user_name')
user_name = module.params.get("user_name")
changed = False

args = {}
if user_name is not None:
args['UserName'] = user_name
args["UserName"] = user_name
try:
response = connection.list_mfa_devices(**args)
except ClientError as e:
Expand All @@ -92,12 +92,12 @@ def main():
)

try:
connection = module.client('iam')
connection = module.client("iam")
except (botocore.exceptions.ClientError, botocore.exceptions.BotoCoreError) as e:
module.fail_json_aws(e, msg='Failed to connect to AWS')
module.fail_json_aws(e, msg="Failed to connect to AWS")

list_mfa_devices(connection, module)


if __name__ == '__main__':
if __name__ == "__main__":
main()

0 comments on commit d501bb4

Please sign in to comment.