The global qcow2ImgType was unconfigured and meant to be used by calling the mkQcow2ImgType() function. In the distro initialisation code, the new variable created from the mkQcow2ImgType() function with the configuration was shadowing the global variable. This can lead to errors in the future where it's not clear which variable is used where. Putting the definition in a function makes it impossible to use without configuring. |
||
|---|---|---|
| .. | ||
| distro_test_common | ||
| fedora | ||
| rhel7 | ||
| rhel8 | ||
| rhel9 | ||
| test_distro | ||
| distro.go | ||
| distro_test.go | ||
| image_config.go | ||
| image_config_test.go | ||