This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.18 by this push:
new 965d29a899f ui: show only advanced zones for vmautoscale form (#7411)
965d29a899f is described below
commit 965d29a899f0cde764b8284e52e7879ca278cd49
Author: Abhishek Kumar <[email protected]>
AuthorDate: Tue Apr 11 17:00:48 2023 +0530
ui: show only advanced zones for vmautoscale form (#7411)
* ui: show only Advance zones for vmautoscale form
Fixes #7409
Signed-off-by: Abhishek Kumar <[email protected]>
* fix non-securitygroupenabled zones
Signed-off-by: Abhishek Kumar <[email protected]>
---------
Signed-off-by: Abhishek Kumar <[email protected]>
---
ui/src/views/compute/CreateAutoScaleVmGroup.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ui/src/views/compute/CreateAutoScaleVmGroup.vue
b/ui/src/views/compute/CreateAutoScaleVmGroup.vue
index 61087a0a3d7..c807228f703 100644
--- a/ui/src/views/compute/CreateAutoScaleVmGroup.vue
+++ b/ui/src/views/compute/CreateAutoScaleVmGroup.vue
@@ -1201,6 +1201,7 @@ export default {
},
zones: {
list: 'listZones',
+ networktype: 'Advanced',
isLoad: true,
field: 'zoneid'
},
@@ -2548,7 +2549,7 @@ export default {
const args = { listall: true, showicon: true }
if (zoneId) args.id = zoneId
api(param.list, args).then(json => {
- const zoneResponse = json.listzonesresponse.zone || []
+ const zoneResponse = (json.listzonesresponse.zone || []).filter(item
=> item.securitygroupsenabled === false)
if (listZoneAllow && listZoneAllow.length > 0) {
zoneResponse.map(zone => {
if (listZoneAllow.includes(zone.id)) {