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

description is now a required field for google_dns_managed_zone #5428

Merged
merged 1 commit into from
Mar 19, 2016
Merged

description is now a required field for google_dns_managed_zone #5428

merged 1 commit into from
Mar 19, 2016

Conversation

shaneog
Copy link
Contributor

@shaneog shaneog commented Mar 2, 2016

The description field for a managed-zone is now a required field when using the Cloud API.
Ref: https://cloud.google.com/sdk/gcloud/reference/dns/managed-zones/create

The test case already included the (previously optional) description so that's why this wasn't picked up.

@@ -30,7 +30,7 @@ func resourceDnsManagedZone() *schema.Resource {

"description": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Required: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could add a default value here, such as "Managed by Terraform". Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is generally our pattern to leave the field optional and fill it with "Managed by Terraform" to minimize required boilerplate for Terraform users.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in b03fc1d

The description field for a managed-zone is now a required field when using the Cloud API.
This commit defaults the field to use the text "Managed by Terraform" to minimize required boilerplate for Terraform users.

Ref: https://cloud.google.com/sdk/gcloud/reference/dns/managed-zones/create
jen20 added a commit that referenced this pull request Mar 19, 2016
description is now a required field for google_dns_managed_zone
@jen20 jen20 merged commit c71751c into hashicorp:master Mar 19, 2016
@jen20
Copy link
Contributor

jen20 commented Mar 19, 2016

Thanks @shaneog!

@shaneog shaneog deleted the google_dns_managed_zone branch March 24, 2016 10:35
@ghost
Copy link

ghost commented Apr 27, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants