stale-minister-93676
04/13/2020, 12:29 PMconst f = new vsphere.Folder(....)
and now I'm trying to use it with `vsphere.getVirtualMachine({ name: ${f.path}/vm-name
})` but I'm getting error fetching virtual machine: vm 'Calling [toString] on an [Output<T>] is not supported.
Anyone know how to get the path as a string?faint-table-42725
04/13/2020, 3:38 PMapply
with an Output
(see https://www.pulumi.com/docs/intro/concepts/programming-model/) — but I want to better understand what you’re doing, too. I’m not really familiar with vSphere, but I thought Folders
are an organizational concept for things, which might include VMs. In which case, if you are attempting to get
a VM with a certain path, doesn’t that imply the Folder
already exists? If the Folder
already exists, you wouldn’t new
it unless you’re also including import
so that it’s managed the pulumi stack.stale-minister-93676
04/13/2020, 4:33 PM${folder}/${template-name}
effectivelyfaint-table-42725
04/13/2020, 4:56 PM${f.path}/${template-name}
already exists if you’ve just created the folder? If that template already exists, it implies you already know the name of the folder, in which case you shouldn’t need to rely on the output value?stale-minister-93676
04/13/2020, 6:52 PMfaint-table-42725
04/13/2020, 8:47 PMOutput
values when it’s something returned from the API/computed by the provider