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

fix: bump mongodb_backups #349

Merged
merged 1 commit into from
Oct 15, 2024
Merged

fix: bump mongodb_backups #349

merged 1 commit into from
Oct 15, 2024

Conversation

Gu1nness
Copy link
Contributor

@Gu1nness Gu1nness commented Oct 15, 2024

Issue

The dictionary can have a None value in case there's no snapshot: pbm status can contain a null value for pbm[backups][snapshot] which is parsed as None and then pbm_status["backups"].get("snapshot", []) == None which is not what is expected here since we want to iterate on the results.

Solution

Export the fallback out of the get in order to ensure that we can iterate on it later.

Copy link
Contributor

@Mehdi-Bendriss Mehdi-Bendriss left a comment

Choose a reason for hiding this comment

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

Could you please add a short description for future readers?

@Gu1nness Gu1nness merged commit f02e1fe into 6/edge Oct 15, 2024
29 of 30 checks passed
@Gu1nness Gu1nness deleted the fix/backups-test-failing branch October 15, 2024 12:14
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.

3 participants