Change the default flag value to None to prevent AWS complaining: "Instance creation failed => InvalidBlockDeviceMapping: the encrypted flag cannot be specified since device /dev/sda1 has a snapshot specified."

This commit is contained in:
Juho-Mikko Pellinen 2015-07-07 16:31:47 +03:00 committed by Matt Clay
parent 530f12035b
commit 29620b78fa

View file

@ -698,7 +698,7 @@ def create_block_device(module, ec2, volume):
volume_type=volume.get('device_type'),
delete_on_termination=volume.get('delete_on_termination', False),
iops=volume.get('iops'),
encrypted=volume.get('encrypted', False))
encrypted=volume.get('encrypted', None))
def boto_supports_param_in_spot_request(ec2, param):
"""