Skip to content

Commit cb5deed

Browse files
Unix machine
1 parent 03e1a0c commit cb5deed

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from wlsdeploy.aliases.location_context import LocationContext
1717
from wlsdeploy.aliases.model_constants import MODEL_LIST_DELIMITER
1818
from wlsdeploy.aliases.model_constants import KSS_KEYSTORE_FILE_INDICATOR
19+
from wlsdeploy.aliases.model_constants import UNIX_MACHINE_ATTRIBUTE
1920
from wlsdeploy.aliases.validation_codes import ValidationCodes
2021
from wlsdeploy.aliases.wlst_modes import WlstModes
2122
from wlsdeploy.exception import exception_helper
@@ -223,7 +224,7 @@ def get_unix_machines(self):
223224
_method_name = 'get_unix_machines'
224225
_logger.entering(class_name=_class_name, method_name=_method_name)
225226
result = OrderedDict()
226-
model_top_folder_name = model_constants.MACHINE
227+
model_top_folder_name = model_constants.UNIX_MACHINE
227228
unix_location = LocationContext(self._base_location)
228229
location = LocationContext(self._base_location)
229230
location.append_location(model_top_folder_name)
@@ -232,8 +233,14 @@ def get_unix_machines(self):
232233
_logger.info('WLSDPLY-06609', len(machines), class_name=_class_name, method_name=_method_name)
233234
name_token = self._aliases.get_name_token(location)
234235
for machine in machines:
235-
_logger.info('WLSDPLY-06610', machine, class_name=_class_name, method_name=_method_name)
236236
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)
237244
result[machine] = OrderedDict()
238245
self._populate_model_parameters(result[machine], location)
239246
self._discover_subfolders(result[machine], location)

0 commit comments

Comments
 (0)