Skip to content
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

added PendingMaintenanceActionDetails details to describe_pending_mai… #9183

Merged
merged 7 commits into from
Jan 5, 2024
Merged

added PendingMaintenanceActionDetails details to describe_pending_mai… #9183

merged 7 commits into from
Jan 5, 2024

Conversation

sgungi-intuit
Copy link
Contributor

added PendingMaintenanceActionDetails details to describe_pending_maintenance_actions call

@sgungi-intuit
Copy link
Contributor Author

Hi @darrendao @kapilt @thisisshi, can you review the PR when you get a chance, thanks.

c7n/resources/rds.py Outdated Show resolved Hide resolved
c7n/resources/rdscluster.py Outdated Show resolved Hide resolved
@StevenGunn
Copy link
Contributor

@kapilt @ajkerrigan can you please review/approve this one before next release?
This feature is highly needed by our organization

CC: @darrendao

Copy link
Member

@ajkerrigan ajkerrigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good addition, thanks! 👍


for r in resources:
if r['DBInstanceArn'] in pending_maintenance:
pending_maintenances = resource_maintenances.get(r['DBInstanceArn'], [])
if len(pending_maintenances) > 0:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: a truthiness check would be sufficient here and possibly clearer

Suggested change
if len(pending_maintenances) > 0:
if pending_maintenances:

@ajkerrigan ajkerrigan merged commit 191e0fc into cloud-custodian:main Jan 5, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants