RosterIn commented on a change in pull request #14028:
URL: https://github.com/apache/airflow/pull/14028#discussion_r584360235
##########
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:
```suggestion
self.pkey = self._pkey_from_private_key(
private_key, passphrase=self.private_key_passphrase
)
```
to make pylint happy
----------------------------------------------------------------
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:
[email protected]