@@ -152,11 +152,9 @@ def __add_applications(self):
152
152
root_path = self .aliases .get_wlst_subfolders_path (self ._base_location )
153
153
application_location = LocationContext (self ._base_location ).append_location (APPLICATION )
154
154
application_token = self .aliases .get_name_token (application_location )
155
- existing_applications = deployer_utils .get_existing_object_list (application_location , self .aliases )
156
155
157
156
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 )
157
+ existing_applications = deployer_utils .get_existing_object_list (application_location , self .aliases )
160
158
161
159
if model_helper .is_delete_name (application_name ):
162
160
if self .__verify_delete_versioned_app (application_name , existing_applications , type = 'app' ):
@@ -165,6 +163,9 @@ def __add_applications(self):
165
163
existing_names = deployer_utils .get_existing_object_list (location , self .aliases )
166
164
deployer_utils .delete_named_element (location , application_name , existing_names , self .aliases )
167
165
continue
166
+ else :
167
+ self .logger .info ('WLSDPLY-09301' , APPLICATION , application_name , self ._parent_type , self ._parent_name ,
168
+ class_name = self ._class_name , method_name = _method_name )
168
169
169
170
application = \
170
171
copy .deepcopy (dictionary_utils .get_dictionary_element (applications , application_name ))
0 commit comments