Skip to content

Commit 965d29a

Browse files
authored
ui: show only advanced zones for vmautoscale form (#7411)
* ui: show only Advance zones for vmautoscale form Fixes #7409 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * fix non-securitygroupenabled zones Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> --------- Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent d170700 commit 965d29a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ui/src/views/compute/CreateAutoScaleVmGroup.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,7 @@ export default {
12011201
},
12021202
zones: {
12031203
list: 'listZones',
1204+
networktype: 'Advanced',
12041205
isLoad: true,
12051206
field: 'zoneid'
12061207
},
@@ -2548,7 +2549,7 @@ export default {
25482549
const args = { listall: true, showicon: true }
25492550
if (zoneId) args.id = zoneId
25502551
api(param.list, args).then(json => {
2551-
const zoneResponse = json.listzonesresponse.zone || []
2552+
const zoneResponse = (json.listzonesresponse.zone || []).filter(item => item.securitygroupsenabled === false)
25522553
if (listZoneAllow && listZoneAllow.length > 0) {
25532554
zoneResponse.map(zone => {
25542555
if (listZoneAllow.includes(zone.id)) {

0 commit comments

Comments
 (0)