def delete_volume(self): volume_id = self.querystring.get('VolumeId')[0] success = ec2_backend.delete_volume(volume_id) if not success: # Volume doesn't exist return "Volume with id {0} does not exist".format(volume_id), dict(status=404) return DELETE_VOLUME_RESPONSE
def delete_volume(self): volume_id = self.querystring.get('VolumeId')[0] success = ec2_backend.delete_volume(volume_id) if not success: # Volume doesn't exist return "Volume with id {} does not exist".format(volume_id), dict( status=404) return DELETE_VOLUME_RESPONSE
def delete_volume(self): volume_id = self.querystring.get('VolumeId')[0] success = ec2_backend.delete_volume(volume_id) return DELETE_VOLUME_RESPONSE