mirror of https://github.com/apache/cloudstack.git
metrics: check object key in system.js, before accessing it
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
6b37f8598d
commit
1611c068f9
|
|
@ -15099,11 +15099,12 @@
|
|||
}
|
||||
|
||||
if (! args.context.instances) {
|
||||
array1.push("&zoneid=" + args.context.zones[0].id);
|
||||
if ("zones" in args.context)
|
||||
array1.push("&zoneid=" + args.context.zones[0].id);
|
||||
if ("pods" in args.context)
|
||||
array1.push("&podid=" + args.context.pods[0].id);
|
||||
array1.push("&podid=" + args.context.pods[0].id);
|
||||
if ("clusters" in args.context)
|
||||
array1.push("&clusterid=" + args.context.clusters[0].id);
|
||||
array1.push("&clusterid=" + args.context.clusters[0].id);
|
||||
} else {
|
||||
//Instances menu > Instance detailView > View Hosts
|
||||
array1.push("&id=" + args.context.instances[0].hostid);
|
||||
|
|
|
|||
Loading…
Reference in New Issue