Skip to content

Commit 9d4f1e3

Browse files
committed
Skip version-invalid folders when running online attribute filter
1 parent 68cefa4 commit 9d4f1e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/main/python/wlsdeploy/tool/util/filters/model_traverse.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, Oracle and/or its affiliates.
1+
# Copyright (c) 2021, 2022, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
from wlsdeploy.aliases.aliases import Aliases
@@ -7,6 +7,7 @@
77
from wlsdeploy.aliases.model_constants import DOMAIN_INFO
88
from wlsdeploy.aliases.model_constants import RESOURCES
99
from wlsdeploy.aliases.model_constants import TOPOLOGY
10+
from wlsdeploy.aliases.validation_codes import ValidationCodes
1011
from wlsdeploy.logging.platform_logger import PlatformLogger
1112

1213
_class_name = 'ModelTraverse'
@@ -71,6 +72,9 @@ def traverse_folder(self, model_node, model_location):
7172
self.traverse_node(model_node, model_location)
7273

7374
def traverse_node(self, model_node, model_location):
75+
result, message = self._aliases.is_version_valid_location(model_location)
76+
if result == ValidationCodes.VERSION_INVALID:
77+
return
7478
valid_folder_names = self._aliases.get_model_subfolder_names(model_location)
7579
valid_attribute_names = self._aliases.get_model_attribute_names(model_location)
7680
self.traverse_node_elements(model_node, model_location, valid_folder_names, valid_attribute_names)

0 commit comments

Comments
 (0)