hussein-awala commented on code in PR #34773:
URL: https://github.com/apache/airflow/pull/34773#discussion_r1347991453


##########
airflow/providers/amazon/aws/hooks/rds.py:
##########
@@ -240,7 +240,7 @@ def get_db_instance_state(self, db_instance_id: str) -> str:
         try:
             response = 
self.conn.describe_db_instances(DBInstanceIdentifier=db_instance_id)
         except self.conn.exceptions.ClientError as e:
-            if e.response["Error"]["Code"] == "DBInstanceNotFoundFault":
+            if e.response["Error"]["Code"] == "DBInstanceNotFound":

Review Comment:
   I wonder if we need to check both values since no one reported the issues 
before.
   ```suggestion
               if e.response["Error"]["Code"] in ["DBInstanceNotFoundFault", 
"DBInstanceNotFound"]:
   ```
   However if @Taragolis solution is applicable, it would be much better.



-- 
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]

Reply via email to