16
16
from wlsdeploy .aliases .location_context import LocationContext
17
17
from wlsdeploy .aliases .model_constants import MODEL_LIST_DELIMITER
18
18
from wlsdeploy .aliases .model_constants import KSS_KEYSTORE_FILE_INDICATOR
19
+ from wlsdeploy .aliases .model_constants import UNIX_MACHINE_ATTRIBUTE
19
20
from wlsdeploy .aliases .validation_codes import ValidationCodes
20
21
from wlsdeploy .aliases .wlst_modes import WlstModes
21
22
from wlsdeploy .exception import exception_helper
@@ -223,7 +224,7 @@ def get_unix_machines(self):
223
224
_method_name = 'get_unix_machines'
224
225
_logger .entering (class_name = _class_name , method_name = _method_name )
225
226
result = OrderedDict ()
226
- model_top_folder_name = model_constants .MACHINE
227
+ model_top_folder_name = model_constants .UNIX_MACHINE
227
228
unix_location = LocationContext (self ._base_location )
228
229
location = LocationContext (self ._base_location )
229
230
location .append_location (model_top_folder_name )
@@ -232,8 +233,14 @@ def get_unix_machines(self):
232
233
_logger .info ('WLSDPLY-06609' , len (machines ), class_name = _class_name , method_name = _method_name )
233
234
name_token = self ._aliases .get_name_token (location )
234
235
for machine in machines :
235
- _logger .info ('WLSDPLY-06610' , machine , class_name = _class_name , method_name = _method_name )
236
236
location .add_name_token (name_token , machine )
237
+ wlst_path = self ._aliases .get_wlst_attributes_path (location )
238
+ self .wlst_cd (wlst_path , location )
239
+ wlst_lsa_params = self ._get_attributes_for_current_location (location )
240
+ if not UNIX_MACHINE_ATTRIBUTE in wlst_lsa_params :
241
+ location .remove_name_token (name_token )
242
+ continue
243
+ _logger .info ('WLSDPLY-06610' , machine , class_name = _class_name , method_name = _method_name )
237
244
result [machine ] = OrderedDict ()
238
245
self ._populate_model_parameters (result [machine ], location )
239
246
self ._discover_subfolders (result [machine ], location )
0 commit comments