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 2021/03/01 17:44:34 UTC
[GitHub] [airflow] pgillet commented on a change in pull request #14028: Reuse private_key_passphrase from SSHHook super class
pgillet commented on a change in pull request #14028:
URL: https://github.com/apache/airflow/pull/14028#discussion_r584920765
##########
File path: airflow/providers/ssh/hooks/ssh.py
##########
@@ -131,9 +132,9 @@ def __init__( # pylint: disable=too-many-statements
self.key_file = extra_options.get("key_file")
private_key = extra_options.get('private_key')
- private_key_passphrase = extra_options.get('private_key_passphrase')
+ self.private_key_passphrase = extra_options.get('private_key_passphrase')
if private_key:
- self.pkey = self._pkey_from_private_key(private_key, passphrase=private_key_passphrase)
+ self.pkey = self._pkey_from_private_key(private_key, passphrase=self.private_key_passphrase)
Review comment:
:heavy_check_mark: Done
----------------------------------------------------------------
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