updated ebs response

This commit is contained in:
Kieran Doonan 2016-07-04 14:09:41 +01:00
parent bf73cb603d
commit a3c16bcc77

View File

@ -29,7 +29,7 @@ class ElasticBlockStore(BaseResponse):
size = self._get_param('Size') size = self._get_param('Size')
zone = self._get_param('AvailabilityZone') zone = self._get_param('AvailabilityZone')
snapshot_id = self._get_param('SnapshotId') snapshot_id = self._get_param('SnapshotId')
encrypted = self._get_param('Encrypted') encrypted = self._get_param('Encrypted') or 'false'
volume = self.ec2_backend.create_volume(size, zone, snapshot_id, encrypted) volume = self.ec2_backend.create_volume(size, zone, snapshot_id, encrypted)
template = self.response_template(CREATE_VOLUME_RESPONSE) template = self.response_template(CREATE_VOLUME_RESPONSE)
return template.render(volume=volume) return template.render(volume=volume)