@@ -84,11 +84,9 @@ def __add_shared_libraries(self):
84
84
root_path = self .aliases .get_wlst_subfolders_path (self ._base_location )
85
85
shared_library_location = LocationContext (self ._base_location ).append_location (LIBRARY )
86
86
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 )
88
87
89
88
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 )
92
90
93
91
if model_helper .is_delete_name (shared_library_name ):
94
92
if self .__verify_delete_versioned_app (shared_library_name , existing_shared_libraries , type = 'lib' ):
@@ -97,6 +95,9 @@ def __add_shared_libraries(self):
97
95
existing_names = deployer_utils .get_existing_object_list (location , self .aliases )
98
96
deployer_utils .delete_named_element (location , shared_library_name , existing_names , self .aliases )
99
97
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 )
100
101
101
102
#
102
103
# In WLST offline mode, the shared library name must match the fully qualified name, including
@@ -152,11 +153,9 @@ def __add_applications(self):
152
153
root_path = self .aliases .get_wlst_subfolders_path (self ._base_location )
153
154
application_location = LocationContext (self ._base_location ).append_location (APPLICATION )
154
155
application_token = self .aliases .get_name_token (application_location )
155
- existing_applications = deployer_utils .get_existing_object_list (application_location , self .aliases )
156
156
157
157
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 )
160
159
161
160
if model_helper .is_delete_name (application_name ):
162
161
if self .__verify_delete_versioned_app (application_name , existing_applications , type = 'app' ):
@@ -165,6 +164,9 @@ def __add_applications(self):
165
164
existing_names = deployer_utils .get_existing_object_list (location , self .aliases )
166
165
deployer_utils .delete_named_element (location , application_name , existing_names , self .aliases )
167
166
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 )
168
170
169
171
application = \
170
172
copy .deepcopy (dictionary_utils .get_dictionary_element (applications , application_name ))
0 commit comments