Commit 3d99915
committed
base_image: fix missing guestfs_distro_source_and_dest_file in yaml output
The GUESTFS_DISTRO_SOURCE_AND_DEST_FILE kconfig variable was missing
the "output yaml" directive, causing it to be defined in .config but
not exported to extra_vars.yaml that Ansible actually consumes.
This resulted in the variable being undefined in Ansible templates:
jinja2.exceptions.UndefinedError: 'target_dir' is undefined
TypeError: expected str, bytes or os.PathLike object, not AnsibleUndefined
The issue only manifested on some machines due to different Ansible
execution contexts - the variable was in .config but missing from
extra_vars.yaml where templates expect it.
Fixed by adding "output yaml" to GUESTFS_DISTRO_SOURCE_AND_DEST_FILE
kconfig definition, ensuring proper variable export to Ansible.
Generated-by: Claude AI
Signed-off-by: Daniel Gomez <[email protected]>1 parent 453a5b2 commit 3d99915
File tree
2 files changed
+2
-0
lines changed- kconfigs
- playbooks/roles/base_image/templates
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments