Repository: incubator-airflow
Updated Branches:
  refs/heads/master ec38ba959 -> a27ea11d6


[AIRFLOW-952] fix save empty extra field in UI

Closes #3222 from luckytaxi/AIRFLOW-952-fix-empty-
extra-field


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/a27ea11d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/a27ea11d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/a27ea11d

Branch: refs/heads/master
Commit: a27ea11d64561cbc32fed57d7b3ffa46d496cd4e
Parents: ec38ba9
Author: Sam Sen <s...@integrichain.com>
Authored: Fri Apr 13 11:15:49 2018 +0200
Committer: Fokko Driesprong <fokkodriespr...@godatadriven.com>
Committed: Fri Apr 13 11:15:49 2018 +0200

----------------------------------------------------------------------
 airflow/models.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/a27ea11d/airflow/models.py
----------------------------------------------------------------------
diff --git a/airflow/models.py b/airflow/models.py
index 9406150..a82eb18 100755
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -680,6 +680,9 @@ class Connection(Base, LoggingMixin):
                                     "using non-encrypted value.")
                 self._extra = value
                 self.is_extra_encrypted = False
+        else:
+            self._extra = value
+            self.is_extra_encrypted = False
 
     @declared_attr
     def extra(cls):

Reply via email to