Commit b40b6046 authored by Leigh B Stoller's avatar Leigh B Stoller

Watch for already deleted image and return proper error to user.

parent 38f254fd
......@@ -3881,6 +3881,10 @@ sub DeleteImage($)
return GeniResponse->Create(GENIRESPONSE_SEARCHFAILED, undef,
"No such image: $image_urn");
}
if (defined($image->deleted())) {
return GeniResponse->Create(GENIRESPONSE_SEARCHFAILED, undef,
"Already deleted: $image_urn");
}
my $imageid = $image->imageid();
my $creator_urn = $image->creator_urn();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment