Skip to content

Consolidate stacklevel in ssh operator warning #34421

@hussein-awala

Description

@hussein-awala

Body

SSHOperator uses the default stacklevel (1) in its deprecation warning, it should be 2:

warnings.warn(
"exec_ssh_client_command method on SSHOperator is deprecated, call "
"`ssh_hook.exec_ssh_client_command` instead",
AirflowProviderDeprecationWarning,
)

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions