Skip to content

Commit 9fa1f5f

Browse files
committed
Removed check for variable_file_name in model_context, if non-None variable_file_name was passed in
1 parent 5e635cc commit 9fa1f5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/python/wlsdeploy/tool/validate/validator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ def __validate_model_file(self, model_dict, variables_file_name, archive_file_na
212212
if variables_file_name is not None:
213213
self._logger.info('WLSDPLY-05004', variables_file_name, class_name=_class_name, method_name=_method_name)
214214
try:
215-
if self._model_context.get_variable_file():
216-
self._variable_properties = variables.load_variables(self._model_context.get_variable_file())
215+
self._variable_properties = variables.load_variables(variables_file_name)
217216
variables.substitute(model_dict, self._variable_properties)
218217
except VariableException, ve:
219218
ex = exception_helper.create_validate_exception('WLSDPLY-20004', 'validateModel',

0 commit comments

Comments
 (0)