added version support to aws_ssm lookup (#61045)

This commit is contained in:
Dan Gorman 2019-09-12 09:49:09 -04:00 committed by John R Barker
parent 6936187bbe
commit 3dbf89e8ae

View file

@ -221,7 +221,7 @@ class LookupModule(LookupBase):
params = boto3_tag_list_to_ansible_dict(response['Parameters'], tag_name_key_name="Name",
tag_value_key_name="Value")
for i in terms:
if i in params:
if i.split(':', 1)[0] in params:
ret.append(params[i])
elif i in response['InvalidParameters']:
ret.append(None)