Fix ec2 volume encryption
@@ -3906,7 +3906,7 @@ class BaseEC2NodeDriver(NodeDriver):
def create_volume(self, size, name, location=None, snapshot=None,
ex_volume_type='standard', ex_iops=None,
- ex_encrypted=None, ex_kms_key_id=None):
+ ex_encrypted=False, ex_kms_key_id=None):
"""
Create a new volume.
@@ -3972,7 +3972,7 @@ class BaseEC2NodeDriver(NodeDriver):
if ex_volume_type == 'io1' and ex_iops:
params['Iops'] = ex_iops
- if ex_encrypted is not None:
+ if ex_encrypted:
params['Encrypted'] = 1
if ex_kms_key_id is not None:
