Skip to content

Commit 6b2b4f4

Browse files
committed
Added _get_nm_properties() and a resource message
1 parent 2742a80 commit 6b2b4f4

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,15 @@ def discover_domain_parameters(self):
265265
discoverer.add_to_model_if_not_empty(self._dictionary, model_folder_name, folder_result)
266266
model_folder_name, folder_result = self._get_domain_log()
267267
discoverer.add_to_model_if_not_empty(self._dictionary, model_folder_name, folder_result)
268+
model_folder_name, folder_result = self._get_nm_properties()
269+
discoverer.add_to_model_if_not_empty(self._dictionary, model_folder_name, folder_result)
270+
268271
_logger.exiting(class_name=_class_name, method_name=_method_name)
269272

270273
def discover_security_configuration(self):
271274
"""
272275
Discover the security configuration for the domain.
273-
:return: name for the model:dictionary continaing the discovered security configuration
276+
:return: name for the model:dictionary containing the discovered security configuration
274277
"""
275278
_method_name = 'discover_security_configuration'
276279
_logger.entering(class_name=_class_name, method_name=_method_name)
@@ -344,6 +347,23 @@ def _get_domain_log(self):
344347

345348
return model_top_folder_name, result
346349

350+
def _get_nm_properties(self):
351+
"""
352+
Discover the NMProperties attributes.
353+
:return: model name for the Log:dictionary containing the discovered NMProperties attributes
354+
"""
355+
_method_name = '_get_nm_properties'
356+
_logger.entering(class_name=_class_name, method_name=_method_name)
357+
model_top_folder_name = model_constants.NM_PROPERTIES
358+
result = OrderedDict()
359+
location = LocationContext(self._base_location)
360+
if self._subfolder_exists(model_top_folder_name, location):
361+
_logger.info('WLSDPLY-06627', class_name=_class_name, method_name=_method_name)
362+
location.append_location(model_top_folder_name)
363+
self._populate_model_parameters(result, location)
364+
_logger.exiting(class_name=_class_name, method_name=_method_name)
365+
return model_top_folder_name, result
366+
347367
def _get_restful_management_services(self):
348368
"""
349369
Discover the wlst restful management services enablement for the domain.

core/src/main/resources/oracle/weblogic/deploy/messages/wlsdeploy_rb.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ WLSDPLY-06623=Adding keystore file {0} for server {1} to archive file
578578
WLSDPLY-06624=Unable to locate and add Server {0} keystore file {1} to the archive file : {2}
579579
WLSDPLY-06625=Unexpected exception attempting to add Server {0} keystore file {1} to the archive : {2}
580580
WLSDPLY-06626=Discovering Domain Log
581+
WLSDPLY-06627=Discovering NM Properties
581582

582583
# multi_tenant_discoverer.py, multi_tenant_resources_dsi
583584
WLSDPLY-06700=Discover Multi-tenant

0 commit comments

Comments
 (0)