Skip to content

Commit

Permalink
Remove default empty string for conn_extras (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
sensei100 authored Jul 7, 2021
1 parent c1f22a3 commit e4f2289
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/manage_connections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{{ airflow_virtualenv }}/bin/airflow connections --add \
--conn_id {{ item.conn_id }} \
--conn_uri {{ item.conn_uri | default("") | quote }} \
--conn_extra '{{ item.conn_extra | default("") | to_json }}'
--conn_extra '{{ item.conn_extra | to_json }}'
changed_when: false
no_log: true
with_items: "{{ airflow_connections }}"
Expand All @@ -47,7 +47,7 @@
--conn_login {{ item.conn_login | default("") | quote }} \
--conn_password {{ item.conn_password | default("") | quote }} \
--conn_schema {{ item.conn_schema | default("") | quote }} \
--conn_extra '{{ item.conn_extra | default("") | to_json }}'
--conn_extra '{{ item.conn_extra | to_json }}'
changed_when: false
no_log: true
with_items: "{{ airflow_connections }}"
Expand All @@ -66,7 +66,7 @@
--conn_password {{ item.conn_password | default("") | quote }} \
--conn_schema {{ item.conn_schema | default("") | quote }} \
--conn_port {{ item.conn_port }} \
--conn_extra '{{ item.conn_extra | default("") | to_json }}'
--conn_extra '{{ item.conn_extra | to_json }}'
changed_when: false
no_log: true
with_items: "{{ airflow_connections }}"
Expand Down

0 comments on commit e4f2289

Please sign in to comment.