File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
core/src/main/python/wlsdeploy/tool/discover Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 99
1010from wlsdeploy .aliases import model_constants
1111from wlsdeploy .aliases .location_context import LocationContext
12+ from wlsdeploy .aliases .model_constants import OPTIONAL_FEATURE
1213from wlsdeploy .aliases .wlst_modes import WlstModes
1314from wlsdeploy .logging .platform_logger import PlatformLogger
1415from wlsdeploy .tool .discover import discoverer
1516from wlsdeploy .tool .discover .discoverer import Discoverer
17+ from wlsdeploy .util import dictionary_utils
1618
1719_class_name = 'GlobalResourcesDiscoverer'
1820_logger = PlatformLogger (discoverer .get_discover_logger_name ())
@@ -308,5 +310,11 @@ def get_optional_feature_deployment(self):
308310 self ._populate_model_parameters (result , location )
309311 self ._discover_subfolders (result , location )
310312
313+ # remove entries with no attributes
314+ features_dict = dictionary_utils .get_dictionary_element (result , OPTIONAL_FEATURE )
315+ for key in list (features_dict .keys ()):
316+ if not features_dict [key ]:
317+ del features_dict [key ]
318+
311319 _logger .exiting (class_name = _class_name , method_name = _method_name , result = model_top_folder_name )
312320 return model_top_folder_name , result
You can’t perform that action at this time.
0 commit comments