Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Error selecting network when name has spaces #296

Open
smatterchew opened this issue Dec 19, 2019 · 1 comment
Open

Error selecting network when name has spaces #296

smatterchew opened this issue Dec 19, 2019 · 1 comment

Comments

@smatterchew
Copy link

Packer version 1.4.4
vsphere-iso version 2.3
vSphere version: VMware ESXi, 6.5.0, 13004031
Error: "--> vsphere-iso: error creating vm: Invalid configuration for device '1'."
From Packer template:
"network": "VLAN3000 - CDN App-Prod",

If I switch to a different host that does not have a space in the network name, I don't get this error.

I tried escaping the string "VLAN3000\ -\ CDN\ App-Prod" and get a parsing error in the template.

I am unable to leave the network selection out because the host has multiple networks.

Has anyone successfully used a network with spaces in the name? Is there a workaround?

Thank you in advance

@neogen19
Copy link

Please try replacing space with %2f. I was able to resolve my issue with that workaround.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants