Skip to content

Commit 43bd80f

Browse files
authored
Apply target_mode to aliases for standalone validate (#1086)
1 parent ff1b399 commit 43bd80f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/main/python/validate.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
# Jython tools don't require sys.path modification
1919

2020
# imports from local packages start here
21+
from wlsdeploy.aliases.aliases import Aliases
2122
from wlsdeploy.aliases.wlst_modes import WlstModes
2223
from wlsdeploy.exception import exception_helper
24+
from wlsdeploy.exception.expection_types import ExceptionType
2325
from wlsdeploy.logging.platform_logger import PlatformLogger
2426
from wlsdeploy.tool.util import filter_helper
2527
from wlsdeploy.tool.util import model_context_helper
@@ -107,7 +109,9 @@ def __perform_model_file_validation(model_file_name, model_context):
107109
class_name=_class_name, method_name=_method_name)
108110

109111
try:
110-
model_validator = Validator(model_context, logger=__logger)
112+
wlst_mode = model_context.get_target_wlst_mode()
113+
aliases = Aliases(model_context=model_context, wlst_mode=wlst_mode, exception_type=ExceptionType.VALIDATE)
114+
model_validator = Validator(model_context, aliases=aliases, logger=__logger)
111115
variable_map = model_validator.load_variables(model_context.get_variable_file())
112116
model_dictionary = cla_helper.merge_model_files(model_file_name, variable_map)
113117

0 commit comments

Comments
 (0)