Skip to content

Conversation

ednxzu
Copy link

@ednxzu ednxzu commented Aug 19, 2025

In ansible 2.19, the template for retrieving the public(floating) address of a molecule instance returns a NoneType value, which in turn evaluates to False when compared to "" , which cause the private address of the instance to never get picked up as fallback. This commit changes the condition to not address | bool which in both case will evaluate to True if the retrieval of the public ip failed.

This will fix #325

@github-actions github-actions bot added the bug Something isn't working label Aug 19, 2025
In ansible 2.19, the template for retrieving the public(floating) address
of a molecule instance returns a NoneType value, which in turn evaluates
to False when compared to , which cause the private address of the instance
to never get picker up as fallback. This commit changes the condition to
not address | bool which in both case will evaluate to True if the retrieval
of the public ip failed.
@ednxzu ednxzu force-pushed the fix/openstack-private-address-conditional branch from 0208aab to beafd54 Compare August 20, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenStack driver fails waiting on ssh in ansible 2.19
1 participant