Banno / packer-post-processor-vsphere-ova

This post-processor will upload a VMDK and vmware template to a datastore on VSphere 5.5
Apache License 2.0
33 stars 13 forks source link

Default datacenter resolves to multipel instances error #12

Closed warroyo closed 6 years ago

warroyo commented 8 years ago

I am getting the following error, any idea why this is happening? I do have 2 datacenters in that vpshere instance but I am specifying.

Post-processor failed: Failed: default datacenter resolves to multiple instances, please specify

here is my config for the post processor(minus sensitive info):


{
      "type": "vsphere-ova",
      "host": "myvcenterhost.com",
      "datacenter": "MY-DATACENTER1",
      "username": "user",
      "password": "pass",
      "datastore": "DATASTORE1",
      "vm_folder": "Templates",
      "remove_floppy": "true",
      "remove_ethernet": "true",
      "remove_optical_drive": "true"
    }
warroyo commented 8 years ago

looking at the code it doesnt look like the config info is being used to set the datacenter?

https://github.com/Banno/packer-post-processor-vsphere-ova/blob/master/post-processor.go#L375-L380