Skip to content

Commit 0dfcd5a

Browse files
Fix discoverDomain to prevent output of empty variable file (#544)
1 parent 35c459d commit 0dfcd5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def inject_variables_keyword_file(self, **kwargs):
218218
method_name=_method_name)
219219

220220
variable_dictionary = self.get_variable_cache()
221-
if variable_dictionary is not None:
221+
if variable_dictionary is not None and len(variable_dictionary) > 0:
222222
variables_inserted = self._write_variables_file(variable_dictionary, variable_file_location, append)
223223
if variables_inserted:
224224
_logger.info('WLSDPLY-19518', variable_file_location, class_name=_class_name,

0 commit comments

Comments
 (0)