forked from astronomer/astronomer-cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed getting values from extra__ keys in airflow con (astronomer#923)
Fixes an issue astronomer#913 where in airflow 2.5.3 (and maybe other versions) `keyfile_json` could not be parsed from the airflow connection, because of the way it was referring to the wrong key in the `extra` dict in the connection. I also wrote unit tests - logically i think it might be a better idea to put them in the tests for base class, but i wanted to adhere to the overall logic. Pre-commit fails with `get_dbt_value` being to complex. Personally i would ignore that as i think branching for different `extras` increases readability in this case, but i am up for a discussion Closes astronomer#913
- Loading branch information
1 parent
fad82eb
commit 3522022
Showing
2 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters