Skip to content

Commit c6af4cd

Browse files
Use alias GET map instead of MapInfo to find attributes not in LSA
1 parent 4a2daa0 commit c6af4cd

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

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

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def _populate_model_parameters(self, dictionary, location):
9898
return
9999

100100
wlst_lsa_params = self._get_attributes_for_current_location(location)
101+
wlst_did_get = list()
101102
_logger.finest('WLSDPLY-06102', self._wlst_helper.get_pwd(), wlst_lsa_params, class_name=_class_name,
102103
method_name=_method_name)
103104
wlst_get_params = self._get_required_attributes(location)
@@ -107,6 +108,7 @@ def _populate_model_parameters(self, dictionary, location):
107108
for wlst_lsa_param in wlst_lsa_params:
108109
if wlst_lsa_param in wlst_get_params:
109110
success, wlst_value = self._get_attribute_value_with_get(wlst_lsa_param, wlst_path)
111+
wlst_did_get.append(wlst_lsa_param)
110112
if not success:
111113
continue
112114
else:
@@ -121,25 +123,13 @@ def _populate_model_parameters(self, dictionary, location):
121123

122124
self._add_to_dictionary(dictionary, location, wlst_lsa_param, wlst_value, wlst_path)
123125

124-
# These will come after the lsa / get params in the ordered dictionary
125-
wlst_extra_params = self._get_additional_parameters(location)
126-
_logger.finest('WLSDPLY-06149', str(location), wlst_extra_params,
127-
class_name=_class_name, method_name=_method_name)
128-
if wlst_extra_params is not None:
129-
for wlst_extra_param in wlst_extra_params:
130-
if wlst_extra_param in wlst_get_params:
131-
success, wlst_value = self._get_attribute_value_with_get(wlst_extra_param, wlst_path)
132-
if success:
133-
self._add_to_dictionary(dictionary, location, wlst_extra_param, wlst_value, wlst_path)
134-
else:
135-
_logger.info('WLSDPLY-06152', wlst_extra_param, location.get_folder_path(),
136-
class_name=_class_name, method_name=_method_name)
137-
elif self._is_defined_attribute(location, wlst_extra_param):
138-
_logger.info('WLSDPLY-06154', wlst_extra_param, location.get_folder_path(),
139-
class_name=_class_name, method_name=_method_name)
140-
else:
141-
_logger.fine('WLSDPLY-06153', wlst_extra_param, location.get_folder_path(),
142-
class_name=_class_name, method_name=_method_name)
126+
# These will come after the lsa params in the ordered dictionary
127+
# Find the attributes that are not in the LSA wlst map but are in the alias definitions with GET access
128+
get_attributes = [get_param for get_param in wlst_get_params if not get_param in wlst_did_get]
129+
for get_attribute in get_attributes:
130+
success, wlst_value = self._get_attribute_value_with_get(wlst_extra_param, wlst_path)
131+
if success:
132+
self._add_to_dictionary(dictionary, location, wlst_extra_param, wlst_value, wlst_path)
143133

144134
def _get_attribute_value_with_get(self, wlst_get_param, wlst_path):
145135
_method_name = '_get_attribute_value_with_get'

0 commit comments

Comments
 (0)