updated ebs response
This commit is contained in:
parent
bf73cb603d
commit
a3c16bcc77
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user