Skip to content

vsphere-clone storage configuration HCL example has a bug in it #485

@bturner-cpacket

Description

@bturner-cpacket

When filing a bug please include the following headings, if possible.

Overview of the Issue

The HCL documentation at https://developer.hashicorp.com/packer/integrations/hashicorp/vsphere/latest/components/builder/vsphere-clone#storage-configuration shows a comma in the HCL under "The following example will use two PVSCSI controllers and two disks on each controller."

Screenshot 2024-10-22 at 4 01 48 PM

This is incorrect and causes this error:

516:        disk_size = 40960,
Argument definitions must be separated by newlines, not commas. An argument
definition must end with a newline.

Reproduction Steps

Create HCL with that block in it, it will error with the above error

Packer Version

Packer v1.10.3

Plugin Version and Builders

Installed plugin github.com/hashicorp/vsphere v1.4.2 in "/root/.config/packer/plugins/github.com/hashicorp/vsphere/packer-plugin-vsphere_v1.4.2_x5.0_linux_amd64"

Please select the builder.

  • [] vsphere-iso
  • vsphere-clone

VMware vSphere Version

vSphere Client version 7.0.3.01700

Guest Operating System

Ubuntu 20.04 LTS x64

Simplified Packer Buildfile

If the file is longer than a few dozen lines, please include the URL to the gist of the log or use the GitHub detailed format instead of posting it directly in the issue.

Operating System and Environment Details

Please add any information you can provide about the environment.

Log Fragments and crash.log Files

Include appropriate log fragments. If the log is longer than a few dozen lines, please include the URL to the gist of the log or use the Github detailed format instead of posting it directly in the issue.

Set the env var PACKER_LOG=1 for maximum log detail.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions