Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v2 Plugin SDK #243

Closed
wants to merge 6 commits into from
Closed

Update to v2 Plugin SDK #243

wants to merge 6 commits into from

Conversation

c10l
Copy link
Contributor

@c10l c10l commented Oct 17, 2021

No description provided.

@c10l c10l force-pushed the plugin-sdk branch 2 times, most recently from 9a5a80c to 73ae765 Compare October 17, 2021 17:20
=== RUN   TestAccContainerFile_content
67
panic: mode: '' expected type 'string', got unconvertible type 'int'
68

69
goroutine 16536 [running]:
70
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*ResourceData).Set(0xc00108a400, 0x1af4fe9, 0x4, 0x18dbfc0, 0x25716a0, 0x0, 0x0)
71
	/home/runner/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.4.3/helper/schema/resource_data.go:230 +0x574
72
github.com/terraform-lxd/terraform-provider-lxd/lxd.resourceLxdContainerFileRead(0xc00108a400, 0x1aad460, 0xc0011ffa00, 0x7facf43a8858, 0x68)
73
	/home/runner/work/terraform-provider-lxd/terraform-provider-lxd/lxd/resource_lxd_container_file.go:146 +0x776
...
    === RUN   TestAccContainer_fileUploadContent
    panic: interface conversion: interface {} is string, not int

    goroutine 26393 [running]:
    github.com/terraform-lxd/terraform-provider-lxd/lxd.resourceLxdContainerCreate(0xc0005c0000, 0x1aad460, 0xc0009c3080, 0xc001e7f480, 0x486a4c)
    /home/runner/work/terraform-provider-lxd/terraform-provider-lxd/lxd/resource_lxd_container.go:331 +0x2ba5
    === RUN   TestAccContainer_addDevice
    resource_lxd_container_test.go:293: Step 2/2 error: Check failed: Check 2/4 error: Error in test check: lxd_container.container1: Attribute 'device.1834377448.properties.path' not found
        Test check address "device.1834377448.properties.path" likely indexes into TypeSet
        This is currently not possible in the SDK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant