コード例 #1
0
ファイル: elastic_block_store.py プロジェクト: mhock/moto
 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
コード例 #2
0
 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
コード例 #3
0
ファイル: elastic_block_store.py プロジェクト: invenia/moto
 def delete_volume(self):
     volume_id = self.querystring.get('VolumeId')[0]
     success = ec2_backend.delete_volume(volume_id)
     return DELETE_VOLUME_RESPONSE