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: detect zone dnssec as enabled when in pending status #1530

Merged
merged 2 commits into from
Apr 1, 2022

Conversation

xabinapal
Copy link
Contributor

Related to #1486

This PR does not fully fix that issue because it addresses two different errors and I think one of them is a bug either in the Cloudflare API or the Go client: #1486 (comment).

With this change, zones with DNSSEC in pending state (when the DS record has not been added or detected yet) won't throw a DNSSEC is already enabled error. The code expected the state value of the DNSSEC API request was only one of active or disabled, but the pending state also represents an enabled DNSSEC, only that is not fully configured yet.

Signed-off-by: Xabier Napal <xabier.napal@dvzr.io>
@github-actions
Copy link
Contributor

Oops! It looks like no changelog entry is attached to this PR. Please include a release note as described in https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/docs/changelog-process.md.

Example:

```release-note:TYPE
Release note
```

If you do not require a release note to be included, please add the workflow/skip-changelog-entry label.

Signed-off-by: Xabier Napal <xabier.napal@dvzr.io>
@jacobbednarz jacobbednarz merged commit a27d395 into cloudflare:master Apr 1, 2022
@jacobbednarz jacobbednarz added this to the v3.12.0 milestone Apr 4, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2022

This functionality has been released in v3.12.0 of the Terraform Cloudflare Provider.

Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

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.

2 participants