CS-15927:Filter to display only Non AutoscaleVMs (name to displayname property change)
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/373d4045 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/373d4045 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/373d4045 Branch: refs/heads/master Commit: 373d4045c272a1b72f9a7958a153794aa41c2f71 Parents: c26cb9d Author: Pranav Saxena <[email protected]> Authored: Mon Aug 20 11:57:11 2012 +0530 Committer: Vijay Venkatachalam <[email protected]> Committed: Fri Nov 16 10:56:54 2012 +0530 ---------------------------------------------------------------------- ui/scripts/network.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/373d4045/ui/scripts/network.js ---------------------------------------------------------------------- diff --git a/ui/scripts/network.js b/ui/scripts/network.js index 36e134d..10f4fcd 100755 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -2361,10 +2361,10 @@ function(instance) { //Hiding the autoScale VMs var nonAutoScale =0; - if(instance.name.match(/AutoScale-LB-/) == null) + if(instance.displayname.match(/AutoScale-LB-/) == null) nonAutoScale = 1; else { - if( instance.name.match(/AutoScale-LB-/).length) + if( instance.displayname.match(/AutoScale-LB-/).length) nonAutoScale =0; } var isActiveState = $.inArray(instance.state, ['Destroyed','Expunging']) == -1;
