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

Add labels functionality to managed DNS #2009

Merged
merged 1 commit into from
Sep 11, 2018

Conversation

chrisst
Copy link
Contributor

@chrisst chrisst commented Sep 7, 2018

Fixes #1803

@chrisst chrisst requested a review from danawillow September 7, 2018 22:20
Copy link
Contributor

@danawillow danawillow left a comment

Choose a reason for hiding this comment

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

You'll also want to add a labels entry to the docs

@@ -72,7 +78,18 @@ func resourceDnsManagedZoneCreate(d *schema.ResourceData, meta interface{}) erro
Description: d.Get("description").(string),
}

if clabels, ok := d.GetOk("labels"); ok {
labels := map[string]string{}
Copy link
Contributor

Choose a reason for hiding this comment

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

we actually have a util called expandLabels already, so you may as well just use that

@ghost ghost added the size/s label Sep 7, 2018
@chrisst
Copy link
Contributor Author

chrisst commented Sep 11, 2018

docs updated, thanks!

Copy link
Contributor

@danawillow danawillow left a comment

Choose a reason for hiding this comment

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

Looks good! Also fyi, I'm a big fan of just adding on additional commits for each code review cycle, that way I get an email on each new commit and can also look at the deltas. Then I usually squash everything together on merge. Totally a personal preference thing, but if you don't already have a strong opinion then you can go with mine :)

@chrisst chrisst merged commit 82e19ea into hashicorp:master Sep 11, 2018
@chrisst chrisst deleted the is-1803-dns-labels branch September 11, 2018 20:04
@chrisst
Copy link
Contributor Author

chrisst commented Sep 11, 2018

I'm in the habit of amending commits partly if they are small updates but mostly because I'm in a different habit of forgetting to squash/merge :P I'll try and comment on PR's if I don't add separate commits.

chrisst added a commit to chrisst/terraform-provider-google that referenced this pull request Nov 9, 2018
Add labels functionality to managed DNS
@ghost
Copy link

ghost commented Nov 16, 2018

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants