Commit 007801ab authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent cc613143
...@@ -2763,14 +2763,13 @@ sub DeleteSlice($) ...@@ -2763,14 +2763,13 @@ sub DeleteSlice($)
"Insufficient privilege" ); "Insufficient privilege" );
# #
# See if we have a record of this slice in the DB. If not, then we have # See if we have a record of this slice in the DB. Might have been
# to go to the ClearingHouse to find its record, so that we can find out # expired out already.
# who the SA for it is.
# #
my $slice = GeniSlice->Lookup($slice_uuid); my $slice = GeniSlice->Lookup($slice_uuid);
if (!defined($slice)) { if (!defined($slice)) {
return GeniResponse->Create(GENIRESPONSE_BADARGS, undef, return GeniResponse->Create(GENIRESPONSE_SEARCHFAILED, undef,
"No such slice on this component: $slice_uuid"); "No slice by that name");
} }
if ($slice->Lock() != 0) { if ($slice->Lock() != 0) {
return GeniResponse->BusyResponse(); return GeniResponse->BusyResponse();
......
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