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