Skip to content

Commit 9e9c23b

Browse files
committed
fixing bug when handling Windows environment variables for token replacement
1 parent d40b445 commit 9e9c23b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/python/wlsdeploy/util/variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def _substitute(text, variables, model_context, error_info, attribute_name=None)
308308
#
309309
env_var_name = str_helper.to_string(key)
310310
is_windows = System.getProperty('os.name').startswith('Windows')
311-
if is_windows and not env_helper.has_env(env_var_name) and env_var_name.has_env(env_var_name.upper()):
311+
if is_windows and not env_helper.has_env(env_var_name) and env_helper.has_env(env_var_name.upper()):
312312
env_var_name = env_var_name.upper()
313313

314314
if not env_helper.has_env(env_var_name):

0 commit comments

Comments
 (0)