jx2lee commented on code in PR #46181:
URL: https://github.com/apache/airflow/pull/46181#discussion_r1932581509


##########
airflow/dag_processing/bundles/git.py:
##########
@@ -70,10 +72,18 @@ def __init__(self, git_conn_id="git_default", *args, 
**kwargs):
         connection = self.get_connection(git_conn_id)
         self.repo_url = connection.host
         self.auth_token = connection.password
+        self.private_key = connection.extra_dejson.get("private_key")
         self.key_file = connection.extra_dejson.get("key_file")
         self.env: dict[str, str] = {}
+
+        if self.key_file and self.private_key:
+            raise AirflowException("Both 'key_file' and 'private_key' cannot 
be provided at the same time")
+        if self.private_key:
+            self._setup_inline_key()
         if self.key_file:

Review Comment:
   Oh, I fixed it! Thanks.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to