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

fix(domain-record): Add dns_zone to tfstate when using terraform import #1024

Merged
merged 2 commits into from
Jan 7, 2022

Conversation

paulden
Copy link
Contributor

@paulden paulden commented Jan 6, 2022

Related to #1023

When importing a domain record, it goes into the first if : https://github.com/scaleway/terraform-provider-scaleway/blob/master/scaleway/resource_domain_record.go#L267

By the end, the dnsZone that is parsed is never set : https://github.com/scaleway/terraform-provider-scaleway/blob/master/scaleway/resource_domain_record.go#L340

I suggest here setting the dns_zone at the end, feedback welcome if you see other ways to fix this issue.

Tested locally on Terraform 1.0.7.

@Monitob Monitob requested a review from jerjako January 7, 2022 14:11
Copy link
Contributor

@jerjako jerjako left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good to me 👍

@Monitob Monitob merged commit e41e972 into scaleway:master Jan 7, 2022
remyleone pushed a commit to remyleone/terraform-provider-scaleway that referenced this pull request Mar 28, 2022
@remyleone remyleone added the domain Domains issues, bugs and feature requests label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain Domains issues, bugs and feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants