Skip to content

Commit

Permalink
change warnning message (#36148)
Browse files Browse the repository at this point in the history
Co-authored-by: Hussein Awala <hussein@awala.fr>
  • Loading branch information
romsharon98 and hussein-awala committed Dec 11, 2023
1 parent fcd993b commit f8124be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/providers/sftp/operators/sftp.py
Expand Up @@ -141,8 +141,8 @@ def execute(self, context: Any) -> str | list[str] | None:
self.sftp_hook = SFTPHook(ssh_conn_id=self.ssh_conn_id)
if self.sftp_hook is None:
warnings.warn(
"Parameter `ssh_hook` is deprecated"
"Please use `sftp_hook` instead."
"Parameter `ssh_hook` is deprecated. "
"Please use `sftp_hook` instead. "
"The old parameter `ssh_hook` will be removed in a future version.",
AirflowProviderDeprecationWarning,
stacklevel=2,
Expand Down

0 comments on commit f8124be

Please sign in to comment.