You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ur...@apache.org on 2022/04/26 04:22:33 UTC

[airflow] branch main updated: Fix doc build failure on main (#23240)

This is an automated email from the ASF dual-hosted git repository.

uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 9021c2b97d Fix doc build failure on main (#23240)
9021c2b97d is described below

commit 9021c2b97d6c662f7a8b7380f74af5b0739a3f50
Author: Tzu-ping Chung <tp...@astronomer.io>
AuthorDate: Tue Apr 26 12:22:24 2022 +0800

    Fix doc build failure on main (#23240)
---
 airflow/providers/amazon/aws/hooks/redshift_cluster.py       |  5 +++--
 airflow/providers/amazon/aws/operators/redshift_cluster.py   | 12 ++++++++----
 .../operators/redshift_cluster.rst                           |  4 ++--
 3 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/airflow/providers/amazon/aws/hooks/redshift_cluster.py b/airflow/providers/amazon/aws/hooks/redshift_cluster.py
index 80fbe0da31..c7b3c51722 100644
--- a/airflow/providers/amazon/aws/hooks/redshift_cluster.py
+++ b/airflow/providers/amazon/aws/hooks/redshift_cluster.py
@@ -52,8 +52,9 @@ class RedshiftHook(AwsBaseHook):
 
         :param cluster_identifier: A unique identifier for the cluster.
         :param node_type: The node type to be provisioned for the cluster.
-            Valid Values: ``ds2.xlarge | ds2.8xlarge | dc1.large | dc1.8xlarge
-            | dc2.large | dc2.8xlarge | ra3.xlplus | ra3.4xlarge | ra3.16xlarge``
+            Valid Values: ``ds2.xlarge``, ``ds2.8xlarge``, ``dc1.large``,
+            ``dc1.8xlarge``, ``dc2.large``, ``dc2.8xlarge``, ``ra3.xlplus``,
+            ``ra3.4xlarge``, and ``ra3.16xlarge``.
         :param master_username: The username associated with the admin user account
             for the cluster that is being created.
         :param master_user_password: password associated with the admin user account
diff --git a/airflow/providers/amazon/aws/operators/redshift_cluster.py b/airflow/providers/amazon/aws/operators/redshift_cluster.py
index 616cf7c909..80a1feba1d 100644
--- a/airflow/providers/amazon/aws/operators/redshift_cluster.py
+++ b/airflow/providers/amazon/aws/operators/redshift_cluster.py
@@ -24,13 +24,17 @@ if TYPE_CHECKING:
 
 
 class RedshiftCreateClusterOperator(BaseOperator):
-    """
-    Creates a new cluster with the specified parameters.
+    """Creates a new cluster with the specified parameters.
+
+    .. seealso::
+        For more information on how to use this operator, take a look at the guide:
+        :ref:`howto/operator:RedshiftCreateClusterOperator`
 
     :param cluster_identifier:  A unique identifier for the cluster.
     :param node_type: The node type to be provisioned for the cluster.
-        Valid Values: ``ds2.xlarge | ds2.8xlarge | dc1.large | dc1.8xlarge
-            | dc2.large | dc2.8xlarge | ra3.xlplus | ra3.4xlarge | ra3.16xlarge``
+            Valid Values: ``ds2.xlarge``, ``ds2.8xlarge``, ``dc1.large``,
+            ``dc1.8xlarge``, ``dc2.large``, ``dc2.8xlarge``, ``ra3.xlplus``,
+            ``ra3.4xlarge``, and ``ra3.16xlarge``.
     :param master_username: The username associated with the admin user account for
         the cluster that is being created.
     :param master_user_password: The password associated with the admin user account for
diff --git a/docs/apache-airflow-providers-amazon/operators/redshift_cluster.rst b/docs/apache-airflow-providers-amazon/operators/redshift_cluster.rst
index 0e27fee65f..a32f43dcfc 100644
--- a/docs/apache-airflow-providers-amazon/operators/redshift_cluster.rst
+++ b/docs/apache-airflow-providers-amazon/operators/redshift_cluster.rst
@@ -36,12 +36,12 @@ Manage Amazon Redshift Clusters
 .. _howto/operator:RedshiftCreateClusterOperator:
 
 Amazon Redshift Cluster Operator
-""""""""""""""""""""""""""""""
+""""""""""""""""""""""""""""""""
 
 To create an Amazon Redshift Cluster with the specified parameters
 :class:`~airflow.providers.amazon.aws.operators.redshift_cluster.RedshiftCreateClusterOperator`.
 
-.. exampleinclude:: /../../../airflow/providers/amazon/aws/example_dags/example_redshift_cluster.py
+.. exampleinclude:: /../../airflow/providers/amazon/aws/example_dags/example_redshift_cluster.py
     :language: python
     :dedent: 4
     :start-after: [START howto_operator_redshift_cluster]