green-morning-1318
05/05/2020, 12:21 AMDiagnostics:
pulumi:pulumi:Stack (marketplace-dev):
panic: fatal: An assertion has failed: {<nil> <nil> <nil> <nil> 173f6e1d-e6a5-4d4d-9fe0-555c41c9faa0 <nil>}: cannot assign vsphere.virtualMachineClonePtrType to vsphere.VirtualMachineClone
goroutine 52 [running]:
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)>
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.0.0/go/common/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assertf(0x1e5e600|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assertf(0x1e5e600>, 0x1ff289a, 0x1a, 0xc000185490, 0x3, 0x3)
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.0.0/go/common/util/contract/assert.go:33 +0x197
<http://github.com/pulumi/pulumi/sdk/v2/go/pulumi.marshalInputAndDetermineSecret(0x1e5e6a0|github.com/pulumi/pulumi/sdk/v2/go/pulumi.marshalInputAndDetermineSecret(0x1e5e6a0>, 0xc0002a66c0, 0x211a520, 0x1e5e4a0, 0xc000185501, 0x1094ad2, 0x1de2900, 0x3, 0xc000185628, 0x109327d, ...)
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.0.0/go/pulumi/rpc.go:244 +0x355
<http://github.com/pulumi/pulumi/sdk/v2/go/pulumi.marshalInput(0x1dda240|github.com/pulumi/pulumi/sdk/v2/go/pulumi.marshalInput(0x1dda240>, 0xc000382660, 0x211a520, 0x1d36320, 0x1dda201, 0xc000382660, 0x194, 0x0, 0x211a520, 0x1d36320, ...)
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.0.0/go/pulumi/rpc.go:144 +0x73
<http://github.com/pulumi/pulumi/sdk/v2/go/pulumi.marshalInputs(0x20f38e0|github.com/pulumi/pulumi/sdk/v2/go/pulumi.marshalInputs(0x20f38e0>, 0xc0003d0000, 0x2b, 0xc000384c90, 0xc0003c24e0, 0xc0003aa0f0, 0x41, 0x0, 0x0)
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.0.0/go/pulumi/rpc.go:102 +0x492
<http://github.com/pulumi/pulumi/sdk/v2/go/pulumi.(*Context).prepareResourceInputs(0xc0001e4200|github.com/pulumi/pulumi/sdk/v2/go/pulumi.(*Context).prepareResourceInputs(0xc0001e4200>, 0x20f38e0, 0xc0003d0000, 0x2001f73, 0x2b, 0xc0003c24e0, 0xc0003a32c0, 0x0, 0x0, 0x0)
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.0.0/go/pulumi/context.go:776 +0x23a
<http://github.com/pulumi/pulumi/sdk/v2/go/pulumi.(*Context).RegisterResource.func1(0xc0003a32c0|github.com/pulumi/pulumi/sdk/v2/go/pulumi.(*Context).RegisterResource.func1(0xc0003a32c0>, 0xc0001e4200, 0x20f38e0, 0xc0003d0000, 0x2001f73, 0x2b, 0xc0003c24e0, 0x1fe7e0a, 0xc, 0x1)
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.0.0/go/pulumi/context.go:453 +0x154
created by <http://github.com/pulumi/pulumi/sdk/v2/go/pulumi.(*Context).RegisterResource|github.com/pulumi/pulumi/sdk/v2/go/pulumi.(*Context).RegisterResource>
/Users/lstigter/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.0.0/go/pulumi/context.go:441 +0x540
exit status 2
The error indicates that vsphere.virtualMachineClonePtrType to vsphere.VirtualMachineClone
though according to the syntax thereโs nothing wrong ๐ The equivalent of this works flawlessly when I execute it with TypeScript ๐คgentle-diamond-70147
05/05/2020, 2:25 AM...Input
object, so I think you need a different type there.Clone: &vsphere.VirtualMachineCloneArgs{
TemplateUuid: pulumi.String("173f6e1d-e6a5-4d4d-9fe0-555c41c9faa0"),
}
green-morning-1318
05/05/2020, 3:25 PMClone VirtualMachineClonePtrInput
๐ค perhaps one or two lines of documentation would help developers realize there are a few options ๐gentle-diamond-70147
05/05/2020, 3:27 PMgreen-morning-1318
05/05/2020, 3:30 PMgentle-diamond-70147
05/05/2020, 3:32 PM