Skip to content

Commit

Permalink
Docs: Replace 'airflow' to 'apache-airflow' to install extra (#15628)
Browse files Browse the repository at this point in the history
Some of the docs advised to use 'airflow[azure]' whereas it should be
apache-airflow[azure]
  • Loading branch information
kaxil committed May 1, 2021
1 parent 7a4e170 commit db557a8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Expand Up @@ -63,7 +63,7 @@ def hook(self):
except Exception as e: # pylint: disable=broad-except
self.log.error(
'Could not create an AwsLogsHook with connection id "%s". '
'Please make sure that airflow[aws] is installed and '
'Please make sure that apache-airflow[aws] is installed and '
'the Cloudwatch logs connection exists. Exception: "%s"',
remote_conn_id,
e,
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/amazon/aws/log/s3_task_handler.py
Expand Up @@ -53,7 +53,7 @@ def hook(self):
except Exception as e: # pylint: disable=broad-except
self.log.exception(
'Could not create an S3Hook with connection id "%s". '
'Please make sure that airflow[aws] is installed and '
'Please make sure that apache-airflow[aws] is installed and '
'the S3 connection exists. Exception : "%s"',
remote_conn_id,
e,
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/microsoft/azure/log/wasb_task_handler.py
Expand Up @@ -66,7 +66,7 @@ def hook(self):
except AzureHttpError:
self.log.exception(
'Could not create an WasbHook with connection id "%s".'
' Please make sure that airflow[azure] is installed'
' Please make sure that apache-airflow[azure] is installed'
' and the Wasb connection exists.',
remote_conn_id,
)
Expand Down
Expand Up @@ -92,7 +92,7 @@ def test_hook_raises(self):

mock_error.assert_called_once_with(
'Could not create an AwsLogsHook with connection id "%s". Please make '
'sure that airflow[aws] is installed and the Cloudwatch '
'sure that apache-airflow[aws] is installed and the Cloudwatch '
'logs connection exists. Exception: "%s"',
'aws_default',
ANY,
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/amazon/aws/log/test_s3_task_handler.py
Expand Up @@ -93,7 +93,7 @@ def test_hook_raises(self):

mock_error.assert_called_once_with(
'Could not create an S3Hook with connection id "%s". Please make '
'sure that airflow[aws] is installed and the S3 connection exists. Exception : "%s"',
'sure that apache-airflow[aws] is installed and the S3 connection exists. Exception : "%s"',
'aws_default',
ANY,
exc_info=True,
Expand Down
Expand Up @@ -71,7 +71,7 @@ def test_hook_raises(self):

mock_error.assert_called_once_with(
'Could not create an WasbHook with connection id "%s".'
' Please make sure that airflow[azure] is installed'
' Please make sure that apache-airflow[azure] is installed'
' and the Wasb connection exists.',
'wasb_default',
exc_info=True,
Expand Down

0 comments on commit db557a8

Please sign in to comment.