Skip to content

Commit 3c3a127

Browse files
committed
JIRA WDT-47 Derive provider attribute path using aliases
1 parent c9dc8f5 commit 3c3a127

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/main/python/wlsdeploy/tool/util/custom_folder_helper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ def update_security_folder(self, location, model_category, model_type, model_nam
5252
# create the MBean using the model name, model_type, category
5353

5454
location.append_location(model_category)
55-
mbean_category = self.alias_helper.get_wlst_mbean_type(location)
55+
token = self.alias_helper.get_name_token(location)
56+
location.add_name_token(token, model_name)
5657

58+
mbean_category = self.alias_helper.get_wlst_mbean_type(location)
5759
self.wlst_helper.create(model_name, model_type, mbean_category)
5860

59-
provider_path = create_path + '/' + mbean_category + '/' + model_name
61+
provider_path = self.alias_helper.get_wlst_attributes_path(location)
6062
provider_mbean = self.wlst_helper.cd(provider_path)
6163

6264
interface_name = model_type + 'MBean'

0 commit comments

Comments
 (0)