From 9e08508d8bb3428f0e9d7b9647f7d980ce73df7d Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Thu, 19 Oct 2017 12:24:04 +0200 Subject: [PATCH] B #5480: Can't change vCenter credentials (#535) --- src/sunstone/public/app/tabs/datastores-tab/panels/info.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/datastores-tab/panels/info.js b/src/sunstone/public/app/tabs/datastores-tab/panels/info.js index df58506103..0794c821f1 100644 --- a/src/sunstone/public/app/tabs/datastores-tab/panels/info.js +++ b/src/sunstone/public/app/tabs/datastores-tab/panels/info.js @@ -113,7 +113,12 @@ define(function(require) { var strippedTemplate = {}; var strippedTemplateVcenter = {}; $.each(this.element.TEMPLATE, function(key, value) { - if (key.match(/^VCENTER_*/)){ + if (!key.match(/^VCENTER_HOST$/) && + !key.match(/^VCENTER_USER$/) && + !key.match(/^VCENTER_PASSWORD$/) && + !key.match(/^VCENTER_DS_IMAGE_DIR$/) && + !key.match(/^VCENTER_DS_VOLATILE_DIR$/) && + key.match(/^VCENTER_*/)){ strippedTemplateVcenter[key] = value; } else {