Skip to content

Commit

Permalink
Merge pull request apache#11 from airbnb/bugfix
Browse files Browse the repository at this point in the history
Bugfix when airflow.cfg boolean had inline comments would eval to none
  • Loading branch information
mistercrunch committed Jun 7, 2015
2 parents b92d212 + 6c59c78 commit 78b6361
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 78b6361

Please sign in to comment.