@@ -31,9 +31,9 @@ def update_security_folder(self, location, model_category, model_type, model_nam
3131 """
3232 Update the specified security model nodes in WLST.
3333 :param location: the location for the provider
34- :param model_category: the model category of the provider to be updated
35- :param model_type: the model type of the provider to be updated
36- :param model_name: the model name of the provider to be updated
34+ :param model_category: the model category of the provider to be updated, such as AuthenticationProvider
35+ :param model_type: the model type of the provider to be updated, such as 'custom.my.CustomIdentityAsserter'
36+ :param model_name: the model name of the provider to be updated, such as 'My custom IdentityAsserter'
3737 :param model_nodes: a child model nodes of the provider to be updated
3838 :raises: BundleAwareException of the specified type: if an error occurs
3939 """
@@ -49,13 +49,14 @@ def update_security_folder(self, location, model_category, model_type, model_nam
4949 create_path = self .alias_helper .get_wlst_subfolders_path (location )
5050 self .wlst_helper .cd (create_path )
5151
52- # TODO for updateDomain: check for existing provider, just cd if present
53-
5452 # create the MBean using the model name, model_type, category
5553
56- self .wlst_helper .create (model_name , model_type , model_category )
54+ location .append_location (model_category )
55+ mbean_category = self .alias_helper .get_wlst_mbean_type (location )
56+
57+ self .wlst_helper .create (model_name , model_type , mbean_category )
5758
58- provider_path = create_path + '/' + model_category + '/' + model_name
59+ provider_path = create_path + '/' + mbean_category + '/' + model_name
5960 provider_mbean = self .wlst_helper .cd (provider_path )
6061
6162 interface_name = model_type + 'MBean'
0 commit comments