Skip to content

Commit be632a5

Browse files
committed
Revert fix for jms template group params, added code to check for null subdeployment name
1 parent 71b460d commit be632a5

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,14 @@ def _get_group_params(self, location):
321321
class_name=_class_name, method_name=_method_name)
322322
else:
323323
group_param_name = attributes[wlst_subdeployment]
324-
_logger.finer('WLSDPLY-06487', group_param_name, self._alias_helper.get_model_folder_path(location),
325-
class_name=_class_name, method_name=_method_name)
326-
subfolder_result[group_param_name] = OrderedDict()
327-
self._populate_model_parameters(subfolder_result[group_param_name], location)
324+
if group_param_name is None:
325+
_logger.warning('WLSDPLY-06486', folder_name, self._alias_helper.get_model_folder_path(location),
326+
class_name=_class_name, method_name=_method_name)
327+
else:
328+
_logger.finer('WLSDPLY-06487', group_param_name, self._alias_helper.get_model_folder_path(location),
329+
class_name=_class_name, method_name=_method_name)
330+
subfolder_result[group_param_name] = OrderedDict()
331+
self._populate_model_parameters(subfolder_result[group_param_name], location)
328332
location.remove_name_token(name_token)
329333
location.pop_location()
330334
_logger.exiting(class_name=_class_name, method_name=_method_name, result=subfolder_result)

core/src/main/resources/oracle/weblogic/deploy/aliases/category_modules/JMSSystemResource.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@
577577
},
578578
"wlst_attributes_path": "WP001",
579579
"wlst_paths": {
580-
"WP001": "/JMSSystemResource${:s}/%JMSSYSTEMRESOURCE%/${Jms:JMS}Resource/${NO_NAME_0:%JMSSYSTEMRESOURCE%}/Template${:s}/%TEMPLATE%/GroupParams/${NO_NAME_0:%FOLDERNAME%}"
580+
"WP001": "/JMSSystemResource${:s}/%JMSSYSTEMRESOURCE%/${Jms:JMS}Resource/${NO_NAME_0:%JMSSYSTEMRESOURCE%}/Template${:s}/%TEMPLATE%/GroupParams/%FOLDERNAME%"
581581
}
582582
},
583583
"MessageLoggingParams": {

0 commit comments

Comments
 (0)