mirror of https://github.com/apache/cloudstack.git
CS-15927:Filter to hide the autoscale VM's through a Regular expression for a Basic Zone
Reviewed-by:Brian
This commit is contained in:
parent
adaaaea128
commit
71dfca41a7
|
|
@ -896,10 +896,17 @@
|
|||
data.listvirtualmachinesresponse.virtualmachine ?
|
||||
data.listvirtualmachinesresponse.virtualmachine : [],
|
||||
function(instance) {
|
||||
return $.inArray(instance.state, [
|
||||
'Destroyed'
|
||||
]) == -1;
|
||||
}
|
||||
var nonAutoScale=0;
|
||||
if( instance.displayname.match(/AutoScale-LB-/)==null)
|
||||
nonAutoScale =1;
|
||||
else {
|
||||
if(instance.displayname.match(/AutoScale-LB-/).length)
|
||||
nonAutoScale =0;
|
||||
}
|
||||
|
||||
var isActiveState= $.inArray(instance.state, ['Destroyed' ]) == -1;
|
||||
return nonAutoScale && isActiveState;
|
||||
}
|
||||
)
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue