From affed67ebd0d4befaaac945c691ea7caf5820707 Mon Sep 17 00:00:00 2001 From: Chris Hoffman Date: Thu, 13 Feb 2014 16:30:31 -0500 Subject: [PATCH] Small fix for ec2 validate_certs option --- lib/ansible/module_utils/ec2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/ec2.py b/lib/ansible/module_utils/ec2.py index 2bdfe35afe..66191e2a50 100644 --- a/lib/ansible/module_utils/ec2.py +++ b/lib/ansible/module_utils/ec2.py @@ -69,7 +69,7 @@ def ec2_connect(module): """ Return an ec2 connection""" ec2_url, aws_access_key, aws_secret_key, region = get_ec2_creds(module) - validate_certs = module.get('validate_certs', True) + validate_certs = module.params.get('validate_certs', True) # If we have a region specified, connect to its endpoint. if region: