dbarrundiag commented on a change in pull request #19665:
URL: https://github.com/apache/airflow/pull/19665#discussion_r754594313
##########
File path: airflow/providers/amazon/aws/sensors/redshift.py
##########
@@ -43,7 +43,10 @@ def __init__(
):
super().__init__(**kwargs)
self.cluster_identifier = cluster_identifier
- self.target_status = target_status
+ self.target_status = (
+ target_status if isinstance(target_status, ClusterStates) else
ClusterStates(str(target_status))
+ )
+
self.aws_conn_id = aws_conn_id
self.hook: Optional[RedshiftHook] = None
Review comment:
I think it's a good idea to show the `.value`, it's cleaner in my
opinion. I made the change
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]