diff --git a/core/src/main/python/wlsdeploy/tool/util/variable_injector.py b/core/src/main/python/wlsdeploy/tool/util/variable_injector.py index 91ed5468f..856e69474 100644 --- a/core/src/main/python/wlsdeploy/tool/util/variable_injector.py +++ b/core/src/main/python/wlsdeploy/tool/util/variable_injector.py @@ -218,7 +218,7 @@ def inject_variables_keyword_file(self, **kwargs): method_name=_method_name) variable_dictionary = self.get_variable_cache() - if variable_dictionary is not None: + if variable_dictionary is not None and len(variable_dictionary) > 0: variables_inserted = self._write_variables_file(variable_dictionary, variable_file_location, append) if variables_inserted: _logger.info('WLSDPLY-19518', variable_file_location, class_name=_class_name,