From 7142e284237e7d63169b784e6617901aed1096cc Mon Sep 17 00:00:00 2001 From: Will Thames Date: Tue, 28 Mar 2017 02:44:59 +1000 Subject: [PATCH] [cloud] Default `encrypted` parameter on ec2_ami_copy to False (#22634) Set encrypted to default False, rather than None Otherwise you get: ``` Invalid type for parameter Encrypted, value: None, type: , valid types: ) ``` --- lib/ansible/modules/cloud/amazon/ec2_ami_copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_ami_copy.py b/lib/ansible/modules/cloud/amazon/ec2_ami_copy.py index 8c5ea16eb4..19717fe90a 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_ami_copy.py +++ b/lib/ansible/modules/cloud/amazon/ec2_ami_copy.py @@ -196,7 +196,7 @@ def main(): source_image_id=dict(required=True), name=dict(default='default'), description=dict(default=''), - encrypted=dict(type='bool', required=False), + encrypted=dict(type='bool', default=False, required=False), kms_key_id=dict(type='str', required=False), wait=dict(type='bool', default=False), wait_timeout=dict(default=1200),