{"action":"opened","issue":{"url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere/issues/135","repository_url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere","labels_url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere/issues/135/comments","events_url":"https://api.github.com/repos/jetbrains-infra/packer-builder-vsphere/issues/135/events","html_url":"https://github.com/jetbrains-infra/packer-builder-vsphere/issues/135","id":346752283,"node_id":"MDU6SXNzdWUzNDY3NTIyODM=","number":135,"title":"Datacenter objects can NOT be in a folder","user":{"login":"lburrit0","id":37888025,"node_id":"MDQ6VXNlcjM3ODg4MDI1","avatar_url":"https://avatars1.githubusercontent.com/u/37888025?v=4","gravatar_id":"","url":"https://api.github.com/users/lburrit0","html_url":"https://github.com/lburrit0","followers_url":"https://api.github.com/users/lburrit0/followers","following_url":"https://api.github.com/users/lburrit0/following{/other_user}","gists_url":"https://api.github.com/users/lburrit0/gists{/gist_id}","starred_url":"https://api.github.com/users/lburrit0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lburrit0/subscriptions","organizations_url":"https://api.github.com/users/lburrit0/orgs","repos_url":"https://api.github.com/users/lburrit0/repos","events_url":"https://api.github.com/users/lburrit0/events{/privacy}","received_events_url":"https://api.github.com/users/lburrit0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-01T20:17:00Z","updated_at":"2018-08-01T20:17:00Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI've noticed that the plugin does not work if the datacenter object is nested inside of a folder. For example:\r\n\r\n\"datacenter\": \"Folder1/MyDatacenter\",\r\n\r\nWill output:\r\n==> vsphere-iso: Creating VM...\r\nBuild 'vsphere-iso' errored: error creating vm: folder '/MyDatacenter/vm' not found\r\n\r\nThe issue is that although the plugin can successfully locate \"Folder1/MyDatacenter\", it will still attempt to create the VM into \"/MyDatacenter/vm\" instead of \"Folder1/MyDatacenter/vm\"\r\n\r\nSpecifying a folder does not help since it will only append the folder to the end. For example:\r\n\r\n\"datacenter\": \"Folder1/MyDatacenter\",\r\n\"Folder\": \"Folder2\"\r\n\r\nWill output:\r\n==> vsphere-iso: Creating VM...\r\nBuild 'vsphere-iso' errored: error creating vm: folder '/MyDatacenter/vm/Folder2' not found\r\n\r\nWould it be possible to add the logic for this? Or if i'm missing something i'd appreciate some assistance. Unfortunately since my company organizes datacenters into folder, I have not had success with the plugin (except when I tested it using a datacenter outside of a folder).\r\n\r\nThanks"}}
{"actor":{"display_login":"lburrit0"}}