diff --git a/src/sunstone/etc/sunstone-views/cloud.yaml b/src/sunstone/etc/sunstone-views/cloud.yaml index 428b71a36c..ce01ab7dd9 100644 --- a/src/sunstone/etc/sunstone-views/cloud.yaml +++ b/src/sunstone/etc/sunstone-views/cloud.yaml @@ -23,6 +23,9 @@ features: # True to show the option to make an instance persistent instantiate_persistent: true + + # True to allow to create machines to cloud users + cloud_vm_create: true tabs: provision-tab: panel_tabs: diff --git a/src/sunstone/etc/sunstone-views/cloud_vcenter.yaml b/src/sunstone/etc/sunstone-views/cloud_vcenter.yaml index c01239fefe..9865630600 100644 --- a/src/sunstone/etc/sunstone-views/cloud_vcenter.yaml +++ b/src/sunstone/etc/sunstone-views/cloud_vcenter.yaml @@ -23,6 +23,9 @@ features: # True to show the option to make an instance persistent instantiate_persistent: true + + # True to allow to create machines to cloud users + cloud_vm_create: true tabs: provision-tab: panel_tabs: diff --git a/src/sunstone/public/app/tabs/provision-tab.js b/src/sunstone/public/app/tabs/provision-tab.js index c418d787e8..8fe884c312 100644 --- a/src/sunstone/public/app/tabs/provision-tab.js +++ b/src/sunstone/public/app/tabs/provision-tab.js @@ -305,7 +305,7 @@ define(function(require) { if (Config.provision.dashboard.isEnabled("vms")) { $("#provision_dashboard").append(TemplateDashboardVms()); - if(!Config.isProvisionTabEnabled("provision-tab", "templates")){ + if(!Config.isFeatureEnabled("cloud_vm_create")){ $('.provision_create_vm_button').hide(); }