[AWS] Fix SSM Parameter Store module when description is missing (#43020)

(cherry picked from commit 07927edfac)
pull/43346/head
Ryan Brown 6 years ago committed by Matt Clay
parent 2267ba2f05
commit 569c045361

@ -181,7 +181,7 @@ def create_update_parameter(client, module):
if existing_parameter['Parameter']['Value'] != args['Value']: if existing_parameter['Parameter']['Value'] != args['Value']:
(changed, response) = update_parameter(client, module, args) (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 # Description field not available from get_parameter function so get it from describe_parameters
describe_existing_parameter = None describe_existing_parameter = None
try: try:

Loading…
Cancel
Save