From 3dbf89e8aeb80eb2d1484b1cb63458e4bb12795a Mon Sep 17 00:00:00 2001 From: Dan Gorman Date: Thu, 12 Sep 2019 09:49:09 -0400 Subject: [PATCH] added version support to aws_ssm lookup (#61045) --- lib/ansible/plugins/lookup/aws_ssm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/aws_ssm.py b/lib/ansible/plugins/lookup/aws_ssm.py index 0fa93d5f93b..7d875ce3e55 100644 --- a/lib/ansible/plugins/lookup/aws_ssm.py +++ b/lib/ansible/plugins/lookup/aws_ssm.py @@ -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)