-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AIRFLOW-3742] Fix handling of "fallback" for int/boolean config option #4674
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4674 +/- ##
==========================================
- Coverage 74.35% 74.33% -0.02%
==========================================
Files 430 429 -1
Lines 27962 27950 -12
==========================================
- Hits 20790 20778 -12
Misses 7172 7172
Continue to review full report at Codecov.
|
there are getint, getfloat etc in the configuration as well. Do we need to update those as well? cc @ashb |
Yes, we need to update |
Made the changes. |
…tint/boolean We added (and used) fallback as an argument on `getboolean` but didn't add it to the method, or add tests covering those "casting" accessors, so they broke. This fixes those methods, and adds tests covering them
Thanks @ttanay - I have extended your PR (on your fork) slightly by adding tests :) |
…tint/boolean (#4674) We added (and used) fallback as an argument on `getboolean` but didn't add it to the method, or add tests covering those "casting" accessors, so they broke. This fixes those methods, and adds tests covering them
Thanks @ashb! |
lgtm |
Merging to pull in this bug fix: apache#4674
…tint/boolean (apache#4674) We added (and used) fallback as an argument on `getboolean` but didn't add it to the method, or add tests covering those "casting" accessors, so they broke. This fixes those methods, and adds tests covering them
Support for a fallback kwarg was added in
AirflowConfigParser.get
in [AIRFLOW-3742], but,
AirflowConfigParser.getboolean
also needsto support it.
Make sure you have checked all steps below.
Jira
Description
On the latest master, when I ran
airflow worker
, I got the following error:Support for a
fallback
kwarg inAirflowConfigParser.get
was added by @ashb in #4567.Support for it also needs to be in
AirflowConfigParser.getboolean
.Tests
Not Needed.
Commits
Documentation
Code Quality
flake8