diff --git a/src/sunstone/public/app/tabs/vms-tab/panels/capacity.js b/src/sunstone/public/app/tabs/vms-tab/panels/capacity.js index d626da4777..1fc487b032 100644 --- a/src/sunstone/public/app/tabs/vms-tab/panels/capacity.js +++ b/src/sunstone/public/app/tabs/vms-tab/panels/capacity.js @@ -76,9 +76,10 @@ define(function(require) { } function _onShow(context) { + var that = this; OpenNebulaVM.monitor({ data: { - id: this.element.ID, + id: that.element.ID, monitor: { monitor_resources : "CPU,MEMORY" }