Commit 7d2b919c authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Shove openstack stats into the webtask if one was specified. So the web

interface gets them via the webtask, otherwise they go into the instance
structure.
parent 7d113405
......@@ -3399,7 +3399,12 @@ sub DoOpenstack()
if ($debug) {
print $response->value() . "\n";
}
if (defined($webtask)) {
$webtask->openstackstats($response->value());
}
else {
$instance->Update({"openstack_utilization" => $response->value()});
}
exit(0);
bad:
print STDERR $errmsg . "\n";
......
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