Commit 1a3c6c94 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add emulab node status (up,down,etc) to sliver status blob.

parent 4dc91148
......@@ -1515,6 +1515,7 @@ sub GenerateStatusBlob($)
print STDERR "Could not map node $resource_id to its object\n";
return -1;
}
my $nodestatus = $node->GetStatus() || "unknown";
# New is the same as stopped. Separate state is handy.
$state = "stopped"
......@@ -1528,6 +1529,7 @@ sub GenerateStatusBlob($)
# We do not put this unless its for SliverStatus. Too big.
"error" => "",
"rawstate" => $node->eventstate(),
"nodestatus" => $nodestatus,
"utc" => time(),
};
......
Supports Markdown
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