Commit fe081316 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Bugfix: Fix Resolve bug triggered when there are no slivers in a slice.

parent d020aca4
......@@ -378,8 +378,6 @@ sub LookupBySlice($$)
my $sliver = GeniRegistry::ClientSliver->Lookup($idx);
if (defined($sliver)) {
push(@result, $sliver);
} else {
return undef;
}
}
}
......
......@@ -328,10 +328,6 @@ sub Resolve($)
return GeniResponse->BusyResponse("slice");
}
my @slivers = GeniRegistry::ClientSliver->LookupBySlice($slice);
if (! @slivers) {
return GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Failed to lookup sliver entries");
}
my @managers = ();
foreach my $sliver (@slivers) {
push(@managers, $sliver->manager_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