Skip to content

Commit

Permalink
Making the error a bit less cryptic (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
capusta authored and ozbillwang committed Sep 27, 2017
1 parent ce3a0ac commit 9b6ffec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lookup/ssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def run(self, terms, variables, **kwargs):

try:
response = client.get_parameters(**ssm_dict)
except ClientError:
raise AnsibleError("ssm parameter store plugin can't get parameters, is AWS access key correct and not expired?")
except ClientError as e:
raise AnsibleError("SSM lookup exception: {0}".format(e))

ret.update(response)

Expand Down

0 comments on commit 9b6ffec

Please sign in to comment.