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 9
9
10
10
from wlsdeploy .aliases import model_constants
11
11
from wlsdeploy .aliases .location_context import LocationContext
12
+ from wlsdeploy .aliases .model_constants import OPTIONAL_FEATURE
12
13
from wlsdeploy .aliases .wlst_modes import WlstModes
13
14
from wlsdeploy .logging .platform_logger import PlatformLogger
14
15
from wlsdeploy .tool .discover import discoverer
15
16
from wlsdeploy .tool .discover .discoverer import Discoverer
17
+ from wlsdeploy .util import dictionary_utils
16
18
17
19
_class_name = 'GlobalResourcesDiscoverer'
18
20
_logger = PlatformLogger (discoverer .get_discover_logger_name ())
@@ -308,5 +310,11 @@ def get_optional_feature_deployment(self):
308
310
self ._populate_model_parameters (result , location )
309
311
self ._discover_subfolders (result , location )
310
312
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
+
311
319
_logger .exiting (class_name = _class_name , method_name = _method_name , result = model_top_folder_name )
312
320
return model_top_folder_name , result
You can’t perform that action at this time.
0 commit comments