mirror of https://github.com/apache/cloudstack.git
Merge branch '3.0.x' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.x
This commit is contained in:
commit
fb720ee41b
|
|
@ -2204,12 +2204,20 @@
|
|||
data.listvirtualmachinesresponse.virtualmachine ?
|
||||
data.listvirtualmachinesresponse.virtualmachine : [],
|
||||
function(instance) {
|
||||
// Hiding the AutoScale VMs
|
||||
var nonAutoScale=0;
|
||||
if( instance.name.match(/AutoScale-LB-/)==null)
|
||||
nonAutoScale =1;
|
||||
else {
|
||||
if(instance.name.match(/AutoScale-LB-/).length)
|
||||
nonAutoScale =0;
|
||||
}
|
||||
var isActiveState = $.inArray(instance.state, ['Destroyed']) == -1;
|
||||
var notExisting = !$.grep(itemData, function(item) {
|
||||
return item.id == instance.id;
|
||||
}).length;
|
||||
}).length;
|
||||
|
||||
return isActiveState && notExisting;
|
||||
return nonAutoScale && isActiveState && notExisting ;
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue