Add default('') to discovered image vars#3799
Add default('') to discovered image vars#3799fultonj wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
My deployment fails without this patch when I use the following ansible: |
cifmw_discovered_image_url and cifmw_discovered_hash are set
dynamically by the discover_latest_image role. When networking_mapper
serializes hostvars early in the play, these variables are not yet
defined, causing a fatal undefined variable error. Add | default('')
so serialization succeeds; the real values are populated later when
discover_latest_image runs.
Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: John Fulton <fulton@redhat.com>
e5dc773 to
e1d015e
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/4eef9e51d577495f8c7e676d45ac837e ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 22m 04s |
cifmw_discovered_image_urlandcifmw_discovered_hashare set dynamically by thediscover_latest_imagerole. Whennetworking_mapperserializes hostvars early in the play, these variables are not yet defined, causing a fatal undefined variable error. Add| default('')so serialization succeeds; the real values are populated later whendiscover_latest_imageruns.Assisted-By: Claude Sonnet 4.6 noreply@anthropic.com