-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Terraform CLI and terraform-plugin-docs Versions
Terraform v1.14.3
on linux_amd64
tfplugindocs Version 0.24.0 from commit 954fc54d3f890868d3f9221523ba34134118abcd
Provider Code
func resourceWireguardAsymmetricKeyImport(d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
// d.Id() is the argument passed to terraform import
private_key := d.Id()
key, err := wgtypes.ParseKey(private_key)
if err != nil {
return nil, err
}
d.Set("private_key", key.String())
d.Set("public_key", key.PublicKey().String())
d.SetId(key.PublicKey().String())
return []*schema.ResourceData{d}, nil
}Expected Behavior
One introduction for how to import, e.g. previously in v0.21.0:
Import
Import is supported using the following syntax:
terraform import wireguard_asymmetric_key.example "EFr5/97eoK32SeMingmUqJpE4TL21nckcl2jQ9ZT82g="
(the snippet from examples/ dir)
Actual Behavior
Two lines of introduction, two colons:
Import
Import is supported using the following syntax:
The
terraform importcommand can be used, for example:terraform import wireguard_asymmetric_key.example "EFr5/97eoK32SeMingmUqJpE4TL21nckcl2jQ9ZT82g="
Steps to Reproduce
git clone --single-branch --branch=dependabot/go_modules/github.com/hashicorp/terraform-plugin-docs-0.24.0 https:/github.com/OJFord/terraform-provider-wireguardcd terraform-provider-wireguardtfplugindocs generate
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working