Skip to content

Rds Operator pass custom conn_id to superclass #51196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 30, 2025

Conversation

dominikhei
Copy link
Contributor


Fixes #50766

I have adjusted the RdsBaseOperator class to explicitly pass the aws_conn_id to its superclass, such that if a custom conn_id is provided the super class does not fall back to the default and the base classes receive the correct conn_id.

Moreover I have adjusted the name of the default value of the aws_conn_id in RdsBaseOperator from aws_conn_id to aws_default , to be consistent with the RdsBaseOperator and all other operators.

@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels May 29, 2025
@dominikhei dominikhei changed the title Rds operator pass conn Rds Operator pass custom conn_id to superclass May 29, 2025
@dominikhei
Copy link
Contributor Author

@o-nikolas I was just skimming through the other AWS operators to look for similar bugs and found that the operators for cloud formation, comprehend and glue still set the aws_conn_id in their own constructors (all have the AWSBaseOperator as their superclass). This does obv. not change any functionality but shall I remove the aws_conn_id from them as well, for better consistency?

@o-nikolas o-nikolas merged commit e944b15 into apache:main May 30, 2025
71 checks passed
@o-nikolas
Copy link
Contributor

@o-nikolas I was just skimming through the other AWS operators to look for similar bugs and found that the operators for cloud formation, comprehend and glue still set the aws_conn_id in their own constructors (all have the AWSBaseOperator as their superclass). This does obv. not change any functionality but shall I remove the aws_conn_id from them as well, for better consistency?

Yupp, that's a reasonable plan, would you like to put up a separate PR for that?

@dominikhei
Copy link
Contributor Author

@o-nikolas I was just skimming through the other AWS operators to look for similar bugs and found that the operators for cloud formation, comprehend and glue still set the aws_conn_id in their own constructors (all have the AWSBaseOperator as their superclass). This does obv. not change any functionality but shall I remove the aws_conn_id from them as well, for better consistency?

Yupp, that's a reasonable plan, would you like to put up a separate PR for that?

Already opened it #51236 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon AWS/Amazon - related issues
Projects
None yet
2 participants