You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/06 00:12:03 UTC

[GitHub] [airflow] utkarsharma2 commented on a change in pull request #9907: Added feature to Import connections from a file.

utkarsharma2 commented on a change in pull request #9907:
URL: https://github.com/apache/airflow/pull/9907#discussion_r466071926



##########
File path: airflow/cli/cli_parser.py
##########
@@ -626,6 +626,20 @@ def positive_int(value):
     ),
     action="store_true",
     default=False)
+ARG_CONN_IMPORT = Arg(
+    ('file',),
+    help='Import connections from a file. Acceptable file formats .json, .yaml, .env',
+    type=str)
+ARG_CONFLICT_DISPOSITION = Arg(
+    ('--conflict-disposition',),
+    help=("Specifies the action that occurs if the connection already exists. Default value : restrict\n"
+          "Values -\n"
+          "\toverwrite : Overwrites the connection\n"
+          "\tignore : Skip this connection\n"
+          "\trestrict : Raise an exception\n"),
+    type=str)

Review comment:
       Updated code.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org