From 07927edfac185b50d85904cd959214082388c833 Mon Sep 17 00:00:00 2001 From: Ryan Brown Date: Fri, 20 Jul 2018 09:32:13 -0400 Subject: [PATCH] [AWS] Fix SSM Parameter Store module when description is missing (#43020) --- lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py b/lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py index fb9270265e..a3e4ea07db 100644 --- a/lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py +++ b/lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py @@ -181,7 +181,7 @@ def create_update_parameter(client, module): if existing_parameter['Parameter']['Value'] != args['Value']: (changed, response) = update_parameter(client, module, args) - if args['Description']: + if args.get('Description'): # Description field not available from get_parameter function so get it from describe_parameters describe_existing_parameter = None try: