Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
NoCredentialsError instance does not return a response attribute, so …
Browse files Browse the repository at this point in the history
…drop.
  • Loading branch information
jonhadfield committed Jun 22, 2016
1 parent b723de0 commit d9a85ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/amazon/ec2_vpc_nat_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def main():
except botocore.exceptions.NoRegionError as nre:
module.fail_json(msg=nre.message, **camel_dict_to_snake_dict(nre.response))
except botocore.exceptions.NoCredentialsError as nce:
module.fail_json(msg=nce.message, **camel_dict_to_snake_dict(nce.response))
module.fail_json(msg=nce.message)


from ansible.module_utils.basic import *
Expand Down

0 comments on commit d9a85ee

Please sign in to comment.