Skip to content

Missing information after conversion for plugin-sdk #492

@x0ddf

Description

@x0ddf

Describe the bug

In my custom plugin, I'm trying to use Resource.Mode field and field data is missing however through markdown table all data presented

How can we reproduce it?

Add simple test to internal/terraform/resource_test.go

func TestPluginSdkConversion(t *testing.T) {
	assert := assert.New(t)
	resource := Resource{
		Type:           "private_key",
		Name:           "baz",
		ProviderName:   "tls",
		ProviderSource: "hashicorp/tls",
		Mode:           "managed",
		Version:        types.String("latest"),
	}
	sdkResource := resources{&resource}.convert()[0]
	assert.Equal(resource.Mode, sdkResource.Mode)
}

Environment information

  • terraform-docs version "terraform-docs version v0.13.0 linux/amd64 BuildDate: 2021-05-02T22:35:52+03:00"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions