We have a bunch of templates where some required user variables are declared as 'null' as described in the docs.
"variables": {
"vcenter_server": null,
"vcenter_username": null,
"vcenter_password": null,
"vcenter_datacenter": null,
Starting from version 1.6.0 packer validate -syntax-only
command fails with
Error initializing core: 4 errors occurred:
* required variable not set: vcenter_password
* required variable not set: vcenter_username
* required variable not set: vcenter_server
* required variable not set: vcenter_datacenter
Versions 1.5.6 and below work fine.
Run packer validate -syntax-only <template_path>
against template with 'null' user variables
1.6.0
Example in the description
Happens both on macOS and windows
Validation log provided in the description
Thanks for reaching out! This issue is due to the build command parsing logic that is now used by the validation command. We'll work on getting this fixed for the next release.
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
Thanks for reaching out! This issue is due to the build command parsing logic that is now used by the validation command. We'll work on getting this fixed for the next release.