Skip to content

VMX property values that can contain '=' characters break parsing #17

@jk53bg

Description

@jk53bg

VMX property values that can contain '=' characters break parsing due to how loadVMXMap() is implemented:

govmx/decode.go

Lines 54 to 57 in 983fd93

parts := strings.Split(line, "=")
if len(parts) != 2 {
errors = appendErrors(errors, fmt.Errorf("Invalid line: %s ", line))
}

This came up while trying to create machines with https://github.com/hooklift/terraform-provider-vix using this https://app.vagrantup.com/generic/boxes/ubuntu1804/versions/3.0.10/providers/vmware_desktop.box Vagrant box.

The box has a guestos.detailed.data property defined with the value bitness='64' distroName='Ubuntu' distroVersion='18.04' familyName='Linux' kernelVersion='4.15.0-76-generic' prettyName='Ubuntu 18.04.4 LTS'

I'll submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions