Skip to content

Conversation

m-bull
Copy link
Contributor

@m-bull m-bull commented Apr 16, 2025

credential_check.stdout is a string representation of a list, and as such will never return true when compared to an empty Python list.

Passing credential_check.stdout through the from_json filter casts the string to a list, and the equality can be properly evaluated.

credential_check.stdout is a string representation of a list, and as such will never return true when compared to an empty Python list.

Passing credential_check.stdout through the from_json filter casts the string to a list, and the equality can be properly evaluated.
@m-bull m-bull requested a review from a team as a code owner April 16, 2025 17:04
@product-auto-label product-auto-label bot added size: xs ansible Ansible playbooks labels Apr 16, 2025
@m-bull m-bull changed the title Fix credential existence check for rgw usage exporter Fix RADOS gateway usage exporter deployment Apr 16, 2025
@Alex-Welsh
Copy link
Member

Needs a reno, otherwise looks good

By default Python requests uses its own CA bundle rather
than the system trust store. As we optionally update
the system trust store with our own CA, force Python
requests to use the system trust store as its CA bundle.
@m-bull m-bull force-pushed the fix/rgw-usage-exporter-creds-check branch from f751774 to 9dfc157 Compare April 17, 2025 09:10
Copy link
Contributor

@MoteHue MoteHue left a comment

Choose a reason for hiding this comment

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

LGTM, thanks :)

@m-bull m-bull merged commit b8db321 into stackhpc/2024.1 Apr 17, 2025
14 checks passed
@m-bull m-bull deleted the fix/rgw-usage-exporter-creds-check branch April 17, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ansible Ansible playbooks size: s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants