Commit 6563b649 authored by Leigh Stoller's avatar Leigh Stoller

Idledata can be the empty string, handle that properly.

parent ffb2cb91
......@@ -1751,9 +1751,15 @@ function Do_IdleData()
if (!($sliver->physnode_count() || $sliver->virtnode_count())) {
continue;
}
$json = $webtask->TaskValue("idledata");
# We might not get any data if no nodes at the target cluster.
# This happens occasionally.
if (!$json || $json == "") {
continue;
}
# Send back the raw json.
$blob[$urn_mapping[$sliver->aggregate_urn()]] =
$webtask->TaskValue("idledata");
$blob[$urn_mapping[$sliver->aggregate_urn()]] = $json;
}
}
SPITAJAX_RESPONSE($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