コード例 #1
0
ファイル: elastic_block_store.py プロジェクト: mhock/moto
 def delete_snapshot(self):
     snapshot_id = self.querystring.get('SnapshotId')[0]
     success = ec2_backend.delete_snapshot(snapshot_id)
     if not success:
         # Snapshot doesn't exist
         return "Snapshot with id {0} does not exist".format(snapshot_id), dict(status=404)
     return DELETE_SNAPSHOT_RESPONSE
コード例 #2
0
 def delete_snapshot(self):
     snapshot_id = self.querystring.get('SnapshotId')[0]
     success = ec2_backend.delete_snapshot(snapshot_id)
     if not success:
         # Snapshot doesn't exist
         return "Snapshot with id {} does not exist".format(
             snapshot_id), dict(status=404)
     return DELETE_SNAPSHOT_RESPONSE
コード例 #3
0
ファイル: elastic_block_store.py プロジェクト: invenia/moto
 def delete_snapshot(self):
     snapshot_id = self.querystring.get('SnapshotId')[0]
     success = ec2_backend.delete_snapshot(snapshot_id)
     return DELETE_SNAPSHOT_RESPONSE