Commit cb95c1d7 authored by Leigh Stoller's avatar Leigh Stoller

Add public_url to CM Sliverstatus() return blob, and pg_public_url to

AM version of same.
parent 65761bb6
......@@ -602,6 +602,8 @@ sub SliverStatus()
# include the pg status
$status->{'pg_status'} = $pgstatus->{'status'};
$status->{'pg_public_url'} = $pgstatus->{'public_url'}
if (exists($pgstatus->{'public_url'}));
# include the expiration, converting to UTC
my $slice = GeniSlice->Lookup($slice_urn);
......
......@@ -1094,6 +1094,10 @@ sub SliverStatus($)
"error" => $aggregate->ErrorLog(),
"details" => {},
};
$blob->{'public_url'} =
"$TBBASE/showslicepub.php?publicid=" . $slice->publicid()
if (defined($slice->publicid()));
foreach my $sliver (@slivers) {
if ($sliver->isa("GeniAggregate")) {
next
......
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