From 3502c4398d707c4b8b9f855415a4b228bbfc836b Mon Sep 17 00:00:00 2001 From: dwest77 Date: Tue, 6 Feb 2024 12:38:56 +0000 Subject: [PATCH] Fixed getattr issue --- pipeline/logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/logs.py b/pipeline/logs.py index 334cc78..142b752 100644 --- a/pipeline/logs.py +++ b/pipeline/logs.py @@ -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)