This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new 3cc20de  continue with the Zone deployment without shared primary 
storage (#908)
3cc20de is described below

commit 3cc20deff6bee2b894d816f651609da20411a09b
Author: Hoang Nguyen <[email protected]>
AuthorDate: Tue Jan 5 13:45:03 2021 +0700

    continue with the Zone deployment without shared primary storage (#908)
---
 src/views/infra/zone/ZoneWizardAddResources.vue | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/views/infra/zone/ZoneWizardAddResources.vue 
b/src/views/infra/zone/ZoneWizardAddResources.vue
index 0f7b83c..ba8cf20 100644
--- a/src/views/infra/zone/ZoneWizardAddResources.vue
+++ b/src/views/infra/zone/ZoneWizardAddResources.vue
@@ -130,6 +130,8 @@ export default {
     steps () {
       const steps = []
       const hypervisor = this.prefillContent.hypervisor ? 
this.prefillContent.hypervisor.value : null
+      const localStorageEnabled = this.prefillContent.localstorageenabled.value
+      const localStorageEnabledForSystemVM = 
this.prefillContent.localstorageenabledforsystemvm.value
       steps.push({
         title: 'label.cluster',
         fromKey: 'clusterResource',
@@ -142,11 +144,13 @@ export default {
           description: 'message.desc.host'
         })
       }
-      steps.push({
-        title: 'label.primary.storage',
-        fromKey: 'primaryResource',
-        description: 'message.desc.primary.storage'
-      })
+      if (!localStorageEnabled || !localStorageEnabledForSystemVM) {
+        steps.push({
+          title: 'label.primary.storage',
+          fromKey: 'primaryResource',
+          description: 'message.desc.primary.storage'
+        })
+      }
       steps.push({
         title: 'label.secondary.storage',
         fromKey: 'secondaryResource',

Reply via email to