Skip to content

Commit ff7b17e

Browse files
committed
zone 추가 마법사 > 기본스토리지 > 제공자/프로토콜 변경 시 값 세팅되도록 수정(ablestack 선택시 => glueblock, glueblock, gluefilesystem 선택시 => ablestack)
1 parent 6afa5ae commit ff7b17e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ui/src/views/infra/zone/StaticInputsForm.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ export default {
172172
'prefillContent.provider' (val) {
173173
if (['SolidFire', 'PowerFlex'].includes(val)) {
174174
this.form.primaryStorageProtocol = 'custom'
175+
} else if (['ABLESTACK'].includes(val)) {
176+
this.form.primaryStorageProtocol = 'Glue Block'
177+
}
178+
},
179+
'prefillContent.primaryStorageProtocol' (val) {
180+
console.log('protocol :>>>>> ', val)
181+
if (['Glue Block', 'Glue FileSystem'].includes(val)) {
182+
this.form.provider = 'ABLESTACK'
175183
}
176184
}
177185
},

ui/src/views/infra/zone/ZoneWizardAddResources.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ export default {
10691069
this.primaryStorageScopes = scope
10701070
},
10711071
fetchProtocol () {
1072-
const hypervisor = this.prefillContent?.hypervisor || null
1072+
const hypervisor = this.prefillContent?.hypervisor || 'KVM'
10731073
const protocols = []
10741074
if (hypervisor === 'KVM') {
10751075
protocols.push({

0 commit comments

Comments
 (0)