Skip to content

Commit 0d81b81

Browse files
save my changes
1 parent c9d5741 commit 0d81b81

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

core/src/main/python/wlsdeploy/tool/discover/discoverer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def _populate_model_parameters(self, dictionary, location):
8484
method_name=_method_name)
8585
continue
8686
else:
87+
_logger.finer('WLSDPLY-06131', wlst_param, class_name=_class_name, method_name=_method_name)
8788
wlst_value = wlst_params[wlst_param]
8889

8990
# if type(wlst_value) == str and len(wlst_value) == 0:

core/src/main/python/wlsdeploy/util/model_context.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -502,18 +502,18 @@ def tokenize_path(self, path):
502502
cwd = path_utils.fixup_path(os.path.dirname(os.path.abspath(__file__)))
503503

504504
# decide later what is required to be in context home for appropriate exception prevention
505-
if self.get_wl_home() and my_path.startswith(self.get_wl_home()):
506-
result = my_path.replace(self.get_wl_home(), self.__WL_HOME_TOKEN)
507-
elif self.get_domain_home() and my_path.startswith(self.get_domain_home()):
508-
result = my_path.replace(self.get_domain_home(), self.__DOMAIN_HOME_TOKEN)
509-
elif self.get_oracle_home() and my_path.startswith(self.get_oracle_home()):
510-
result = my_path.replace(self.get_oracle_home(), self.__ORACLE_HOME_TOKEN)
511-
elif my_path.startswith(cwd):
512-
result = my_path.replace(cwd, self.__CURRENT_DIRECTORY_TOKEN)
513-
elif my_path.startswith(tmp_dir):
514-
result = my_path.replace(tmp_dir, self.__TEMP_DIRECTORY_TOKEN)
515-
else:
516-
result = my_path
505+
result = my_path
506+
if my_path:
507+
if self.get_wl_home() and my_path.startswith(self.get_wl_home()):
508+
result = my_path.replace(self.get_wl_home(), self.__WL_HOME_TOKEN)
509+
elif self.get_domain_home() and my_path.startswith(self.get_domain_home()):
510+
result = my_path.replace(self.get_domain_home(), self.__DOMAIN_HOME_TOKEN)
511+
elif self.get_oracle_home() and my_path.startswith(self.get_oracle_home()):
512+
result = my_path.replace(self.get_oracle_home(), self.__ORACLE_HOME_TOKEN)
513+
elif my_path.startswith(cwd):
514+
result = my_path.replace(cwd, self.__CURRENT_DIRECTORY_TOKEN)
515+
elif my_path.startswith(tmp_dir):
516+
result = my_path.replace(tmp_dir, self.__TEMP_DIRECTORY_TOKEN)
517517

518518
return result
519519

core/src/main/resources/oracle/weblogic/deploy/messages/wlsdeploy_rb.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ WLSDPLY-06127=Unable to discover attribute {0} at location {1} under wls version
458458
will not be added to the model : {4}
459459
WLSDPLY-06130=Unexpected exception attempting to discover MBean entries at location {0} will prevent the discovery \
460460
of attributes at this location : {1}
461+
WLSDPLY-06131=Attribute {0} retrieved from lsa() map
461462

462463
# resources_discoverer.py
463464
WLSDPLY-06300=Discovering domain model resources

0 commit comments

Comments
 (0)