Skip to content

Commit ecf5e92

Browse files
Hoang Nguyenyadvr
authored andcommitted
continue with the Zone deployment without shared primary storage (#908)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 8430bed commit ecf5e92

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ export default {
130130
steps () {
131131
const steps = []
132132
const hypervisor = this.prefillContent.hypervisor ? this.prefillContent.hypervisor.value : null
133+
const localStorageEnabled = this.prefillContent.localstorageenabled.value
134+
const localStorageEnabledForSystemVM = this.prefillContent.localstorageenabledforsystemvm.value
133135
steps.push({
134136
title: 'label.cluster',
135137
fromKey: 'clusterResource',
@@ -142,11 +144,13 @@ export default {
142144
description: 'message.desc.host'
143145
})
144146
}
145-
steps.push({
146-
title: 'label.primary.storage',
147-
fromKey: 'primaryResource',
148-
description: 'message.desc.primary.storage'
149-
})
147+
if (!localStorageEnabled || !localStorageEnabledForSystemVM) {
148+
steps.push({
149+
title: 'label.primary.storage',
150+
fromKey: 'primaryResource',
151+
description: 'message.desc.primary.storage'
152+
})
153+
}
150154
steps.push({
151155
title: 'label.secondary.storage',
152156
fromKey: 'secondaryResource',

0 commit comments

Comments
 (0)