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

Terraform import gandi_mailbox #115

Open
flippipe opened this issue Apr 24, 2022 · 2 comments
Open

Terraform import gandi_mailbox #115

flippipe opened this issue Apr 24, 2022 · 2 comments

Comments

@flippipe
Copy link

Hi,

When importing a gandi_mailbox I've got this error

Error: failed to set address for demo.info/b01dac49-xxxx-xxxx-94ab-3bdf9c7dbfd5: Invalid address to set: []string{"address"}

In the resource definition is not missing the address information?

https://github.com/go-gandi/terraform-provider-gandi/issues/new?permalink=https%3A%2F%2Fgithub.com%2Fgo-gandi%2Fterraform-provider-gandi%2Fblob%2Ffdca6cd88d0f5fc2445ab0c137a85f50f20161c3%2Fgandi%2Fresource_mailbox.go%23L12

Answer from API

2022-04-24T17:46:34.789+0100 [INFO]  provider.terraform-provider-gandi_v2.0.1: 2022/04/24 17:46:34 Response body: {"login":"teste","quota_used":3,"mailbox_type":"standard","domain":"demo.info","aliases":[],"responder":{"message":"","enabled":false},"address":"teste@demo.info","href":"https://api.gandi.net/v5/email/mailboxes/demo.info/b01dac49-xxxx-xxxx-94ab-3bdf9c7dbfd5","id":"b01dac49-xxxx-xxxx-94ab-3bdf9c7dbfd5"}: timestamp=2022-04-24T17:46:34.788+0100
@nlewo
Copy link
Member

nlewo commented Apr 29, 2022

@flippipe yes, the address is missing from the schema :/ There are also other missing fields and the implementation of this resource looks quite fragile.

@strboul
Copy link

strboul commented Sep 24, 2022

Is there any update on this one?

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

No branches or pull requests

3 participants