Skip to content

Commit

Permalink
Fix bug with alternate env being used
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanVaughn committed May 31, 2023
1 parent ab71891 commit 9f1361d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ def get_environment_variable(
# try to find alternate variable
if alternates is not None:
for a in alternates:
if get_environment_variable(a) is not None:
return a
a_value = get_environment_variable(a)
if a_value is not None:
return a_value

# return default value
print2(f"{key} NOT found in environment variables, using default: {default}")
Expand Down

0 comments on commit 9f1361d

Please sign in to comment.