Skip to content

Commit 0bc59ad

Browse files
committed
Log at INFO level if WDT_MODEL_SECRETS_DIRS directory does not exist
1 parent 4d0e938 commit 0bc59ad

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -357,15 +357,15 @@ def _init_secret_token_map(model_context):
357357

358358
locations = os.environ.get(_secret_dirs_variable, _secret_dirs_default)
359359
for dir in locations.split(","):
360-
if not os.path.isdir(dir):
361-
# log at WARN or INFO, but no exception is thrown
362-
log_method('WLSDPLY-01738', _secret_dirs_variable, dir, class_name=_class_name, method_name=method_name)
363-
continue
364-
365-
for subdir_name in os.listdir(dir):
366-
subdir_path = os.path.join(dir, subdir_name)
367-
if os.path.isdir(subdir_path):
368-
_add_file_secrets_to_map(subdir_path, subdir_name, model_context)
360+
if not os.path.isdir(dir):
361+
# log at INFO, no exception is thrown
362+
_logger.info('WLSDPLY-01738', _secret_dirs_variable, dir, class_name=_class_name, method_name=method_name)
363+
continue
364+
365+
for subdir_name in os.listdir(dir):
366+
subdir_path = os.path.join(dir, subdir_name)
367+
if os.path.isdir(subdir_path):
368+
_add_file_secrets_to_map(subdir_path, subdir_name, model_context)
369369

370370
# add name/key pairs for files in directories assigned in WDT_MODEL_SECRETS_NAME_DIR_PAIRS.
371371
# these pairs will override if they were previously added as sub-directory pairs.

0 commit comments

Comments
 (0)