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
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
def delete_snapshot(self): snapshot_id = self.querystring.get('SnapshotId')[0] success = ec2_backend.delete_snapshot(snapshot_id) return DELETE_SNAPSHOT_RESPONSE