leonidlm / packer-builder-softlayer

A builder plugin for packer.io for a SoftLayer cloud
MIT License
38 stars 32 forks source link

panic: interface conversion: interface is nil, not string #4

Closed kyleschlosser closed 9 years ago

kyleschlosser commented 10 years ago

I cloned the packer and packer-build-softlayer repositories and built using go1.3.1 linux/amd64. I tried to run packer build on a couple of samples but it fails as follows:

Sending new request to softlayer: https://xxxxx:xxxxx@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/createObject packer-builder-softlayer: panic: interface conversion: interface is nil, not string ... github.com/leonidlm/packer-builder-softlayer/builder/softlayer.(_stepCreateInstance).Run(0xc2080c6090, 0x7f0dca1d8830, 0xc2080ee2d0, 0x0) github.com/leonidlm/packer-builder-softlayer/builder/softlayer/step_create_instance.go:50 +0x522 github.com/mitchellh/multistep.(_BasicRunner).Run(0xc20814e0c0, 0x7f0dca1d8830, 0xc2080ee2d0)

leonidlm commented 10 years ago

@kyleschlosser can you please attach the full output of the command? If you try to execute packer-builder-softlayer with the same configuration, does the error persists?