Skip to content

Commit 50942a8

Browse files
committed
[repo] toolbox: notifications: send: correctly generate the warning list
1 parent 3db5c70 commit 50942a8

File tree

1 file changed

+2
-2
lines changed
  • projects/repo/toolbox/notifications

1 file changed

+2
-2
lines changed

projects/repo/toolbox/notifications/send.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def send_job_completion_notification(reason, status, github=True, slack=False, d
3030
warn = []
3131
for secret_env_key in SECRET_ENV_KEYS:
3232
if os.environ.get(secret_env_key): break
33-
warn.append("{} not defined, cannot access the Github secrets")
33+
warn.append(f"{secret_env_key} not defined, cannot access the Github secrets")
3434
else:
3535
for warning in warn:
36-
logging.warning(warn)
36+
logging.warning(warning)
3737
return True
3838

3939
secret_dir = pathlib.Path(os.environ[secret_env_key])

0 commit comments

Comments
 (0)