Skip to content

Commit 4524fe8

Browse files
authored
Fix -updateRCUSchemaPassword failed when it has new custom datasource (#876)
* This fixes the case when updating the rcu schema password in the model but at the same time there is a new datasource
1 parent 87d5c39 commit 4524fe8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ def update_rcu_password(self):
5454
for ds_name in ds_names:
5555
location = deployer_utils.get_jdbc_driver_params_location(ds_name, self.aliases)
5656
password_location = LocationContext(location)
57+
list_path = self.aliases.get_wlst_list_path(location)
58+
if not self.wlst_helper.path_exists(list_path):
59+
# For update case when a new custom data source has not been persisted,
60+
# the driver params location is just a placeholder and will result in error
61+
# if we try to get the attribute list from the location.
62+
# Since we only care about rcu stock data sources from the template for changing
63+
# rcu schema password; we can skip for any new custom data source.
64+
continue
5765

5866
wlst_path = self.aliases.get_wlst_attributes_path(location)
5967
self.wlst_helper.cd(wlst_path)

0 commit comments

Comments
 (0)