Skip to content

fix: Correct the image_version conditional#2082

Merged
lucas-benedito merged 2 commits intoansible:develfrom
lucas-benedito:fix_img_version_conditional
Oct 9, 2025
Merged

fix: Correct the image_version conditional#2082
lucas-benedito merged 2 commits intoansible:develfrom
lucas-benedito:fix_img_version_conditional

Conversation

@lucas-benedito
Copy link
Contributor

SUMMARY

When image is set and image_version is unset, the conditional fails due to the unset variable causing an error.
Implemented the correct conditional and added an assert to validate that both variables are set properly when image is set.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change

@lucas-benedito lucas-benedito self-assigned this Oct 2, 2025
@lucas-benedito lucas-benedito added the type:bug Something isn't working label Oct 2, 2025
@lucas-benedito lucas-benedito force-pushed the fix_img_version_conditional branch from decda98 to 292da21 Compare October 3, 2025 11:07
When image is set and image_version is unset, the conditional is failing
due to the unset variable causes and error.
Implemented the correct conditional and added an assert to validate that
both variables are set properly when image is set.

Signed-off-by: Lucas Benedito <lbenedit@redhat.com>
@lucas-benedito lucas-benedito force-pushed the fix_img_version_conditional branch from 292da21 to a1191f7 Compare October 3, 2025 11:11
Signed-off-by: Lucas Benedito <lbenedit@redhat.com>
@lucas-benedito lucas-benedito force-pushed the fix_img_version_conditional branch from 1273af4 to 61da164 Compare October 8, 2025 16:18
@lucas-benedito lucas-benedito merged commit 78864b3 into ansible:devel Oct 9, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants