Skip to content

Commit

Permalink
[cloud] Default encrypted parameter on ec2_ami_copy to False (ansib…
Browse files Browse the repository at this point in the history
…le#22634)

Set encrypted to default False, rather than None

Otherwise you get:

```
Invalid type for parameter Encrypted, value: None, type: <type 'NoneType'>, valid types: <type 'bool'>)
```
  • Loading branch information
willthames authored and ryansb committed Mar 27, 2017
1 parent 36e24c5 commit 7142e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/amazon/ec2_ami_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 7142e28

Please sign in to comment.