Skip to content

Commit 67de391

Browse files
committed
Merge branch 'main' into topology-profile
2 parents 0420655 + 5c506d9 commit 67de391

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

core/src/main/python/wlsdeploy/tool/deploy/applications_deployer.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,9 @@ def __add_shared_libraries(self):
8484
root_path = self.aliases.get_wlst_subfolders_path(self._base_location)
8585
shared_library_location = LocationContext(self._base_location).append_location(LIBRARY)
8686
shared_library_token = self.aliases.get_name_token(shared_library_location)
87-
existing_shared_libraries = deployer_utils.get_existing_object_list(shared_library_location, self.aliases)
8887

8988
for shared_library_name in shared_libraries:
90-
self.logger.info('WLSDPLY-09608', LIBRARY, shared_library_name, self._parent_type, self._parent_name,
91-
class_name=self._class_name, method_name=_method_name)
89+
existing_shared_libraries = deployer_utils.get_existing_object_list(shared_library_location, self.aliases)
9290

9391
if model_helper.is_delete_name(shared_library_name):
9492
if self.__verify_delete_versioned_app(shared_library_name, existing_shared_libraries, type='lib'):
@@ -97,6 +95,9 @@ def __add_shared_libraries(self):
9795
existing_names = deployer_utils.get_existing_object_list(location, self.aliases)
9896
deployer_utils.delete_named_element(location, shared_library_name, existing_names, self.aliases)
9997
continue
98+
else:
99+
self.logger.info('WLSDPLY-09608', LIBRARY, shared_library_name, self._parent_type, self._parent_name,
100+
class_name=self._class_name, method_name=_method_name)
100101

101102
#
102103
# In WLST offline mode, the shared library name must match the fully qualified name, including
@@ -152,11 +153,9 @@ def __add_applications(self):
152153
root_path = self.aliases.get_wlst_subfolders_path(self._base_location)
153154
application_location = LocationContext(self._base_location).append_location(APPLICATION)
154155
application_token = self.aliases.get_name_token(application_location)
155-
existing_applications = deployer_utils.get_existing_object_list(application_location, self.aliases)
156156

157157
for application_name in applications:
158-
self.logger.info('WLSDPLY-09301', APPLICATION, application_name, self._parent_type, self._parent_name,
159-
class_name=self._class_name, method_name=_method_name)
158+
existing_applications = deployer_utils.get_existing_object_list(application_location, self.aliases)
160159

161160
if model_helper.is_delete_name(application_name):
162161
if self.__verify_delete_versioned_app(application_name, existing_applications, type='app'):
@@ -165,6 +164,9 @@ def __add_applications(self):
165164
existing_names = deployer_utils.get_existing_object_list(location, self.aliases)
166165
deployer_utils.delete_named_element(location, application_name, existing_names, self.aliases)
167166
continue
167+
else:
168+
self.logger.info('WLSDPLY-09301', APPLICATION, application_name, self._parent_type, self._parent_name,
169+
class_name=self._class_name, method_name=_method_name)
168170

169171
application = \
170172
copy.deepcopy(dictionary_utils.get_dictionary_element(applications, application_name))

core/src/main/python/wlsdeploy/tool/deploy/deployer_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ def online_check_save_activate(model_context):
590590
_wlst_helper.silence()
591591
if model_context.is_cancel_changes_if_restart_required() and restart_required:
592592
_wlst_helper.cancel_edit()
593-
_logger.warning('WLSDPLY_09015', is_restartreq_output)
593+
_logger.warning('WLSDPLY-09018', is_restartreq_output)
594594
exit_code = CommandLineArgUtil.PROG_CANCEL_CHANGES_IF_RESTART_EXIT_CODE
595595
list_non_dynamic_changes(model_context, is_restartreq_output)
596596
else:

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,11 +1038,10 @@ WLSDPLY-09012=While handling an error, failed to stop the current edit session a
10381038
WLSDPLY-09013=While handling an error, failed to close the domain: {0}
10391039
WLSDPLY-09014={0} was unable to load the model from {1} due to a translation error: {2}
10401040
WLSDPLY-09015={0} deployment failed: {1}
1041-
WLSDPLY_09015=Online update has been canceled because the flag cancel_changes_if_restart_required is set and the update requires \
1042-
restart: {0}
10431041
WLSDPLY-09016=There are outstanding changes but -discard_current_edit has been specified, all changes have been \
10441042
discarded before processing update.
10451043
WLSDPLY-09017=Server {0} in
1044+
WLSDPLY-09018=Online update has been canceled because the flag cancel_changes_if_restart_required is set and the update requires restart: {0}
10461045

10471046
# wlsdeploy/tool/deploy/deployer_utils.py
10481047
WLSDPLY-09100=Existing object names are {0}

0 commit comments

Comments
 (0)