Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.

Commit 3cc20de

Browse files
author
Hoang Nguyen
authored
continue with the Zone deployment without shared primary storage (#908)
1 parent 0593302 commit 3cc20de

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

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)