From 6c59c78134d18dbfe58cc8baafbb9af311b46051 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Sun, 7 Jun 2015 13:58:06 -0700 Subject: [PATCH] Bugfix when airflow.cfg boolean had inline comments would eval to none --- airflow/configuration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airflow/configuration.py b/airflow/configuration.py index 7771cbd4d9c17..78f3466c7764f 100644 --- a/airflow/configuration.py +++ b/airflow/configuration.py @@ -191,6 +191,8 @@ def get(self, section, key): def getboolean(self, section, key): val = str(self.get(section, key)).lower().strip() + if '#' in val: + val = val.split('#')[0].strip() if val == "true": return True elif val == "false":