Skip to content

Commit

Permalink
Fixed getattr issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dwest77a committed Feb 6, 2024
1 parent d13ee85 commit 3502c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_attribute(env: str, args, var: str):
Finds value of variable from Environment or ParseArgs object, or reports failure
"""
if hasattr(args, var):
if getattr(args, var):
return getattr(args, var)
elif os.getenv(env):
return os.getenv(env)
Expand Down

0 comments on commit 3502c43

Please sign in to comment.