Skip to content

Commit 1eb5408

Browse files
CarolynRountreeddsharpe
authored andcommitted
For discoverDomain, use variable file name argument from command line (#499)
1 parent 1243d5f commit 1eb5408

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/python/wlsdeploy/tool/util/variable_injector.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
VARIABLE_KEYWORDS_FILE_NAME_ARG = 'variable_keywords_file_name'
3838
VARIABLE_INJECTOR_FILES_PATH_ARG = 'variable_injector_files_path_name'
3939
VARIABLE_FILE_NAME_ARG = 'variable_file_name'
40+
VARIABLE_FILE_SWITCH = 'variable_file'
4041
VARIABLE_FILE_NAME = 'variable.properties'
4142
VARIABLE_FILE_APPEND_ARG = 'append_to_variables'
4243
VARIABLE_FILE_APPEND = 'append'
@@ -603,7 +604,9 @@ def _log_mbean_not_found(self, mbean, replacement, location):
603604

604605
def _get_variable_file_name(self, **kwargs):
605606
_method_name = '_get_variable_file_name'
606-
if VARIABLE_FILE_NAME_ARG in kwargs:
607+
if self.__model_context is not None and self.__model_context.get_variable_file() is not None:
608+
variable_file_location = self.__model_context.get_variable_file()
609+
elif VARIABLE_FILE_NAME_ARG in kwargs:
607610
variable_file_location = kwargs[VARIABLE_FILE_NAME_ARG]
608611
_logger.finer('WLSDPLY-19522', variable_file_location, class_name=_class_name, method_name=_method_name)
609612
else:

0 commit comments

Comments
 (0)