Commit e7372071 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Hacky change to SliceStatus until URN's are ready.

parent 9fe15314
......@@ -3028,6 +3028,7 @@ sub SliverStatus($)
#
my $summary = "ready";
my %details = ();
my %detailsNew = ();
my @slivers = ();
if ($aggregate->SliverList(\@slivers) != 0) {
print STDERR "Could not get slivers for $aggregate\n";
......@@ -3047,17 +3048,23 @@ sub SliverStatus($)
print STDERR "Cannot find node by uuid $node_uuid\n";
return GeniResponse->Create(GENIRESPONSE_ERROR);
}
my $hrn = GeniHRN::Generate($OURDOMAIN, "sliver", $node->node_id());
if ($node->IsUp()) {
$details{$node_uuid} = "ready";
$detailsNew{$hrn} = "ready";
}
else {
$details{$node_uuid} = "notready";
$detailsNew{$hrn} = "notready";
$summary = "notready";
}
}
$slice->UnLock();
my $blob = {"status" => $summary,
"details" => \%details};
"details" => \%details,
"detailsNew" => \%detailsNew,
};
return GeniResponse->Create(GENIRESPONSE_SUCCESS, $blob);
}
......
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