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

Port Consul provider to new helper.Schema, add Token support #396

Merged
merged 3 commits into from
Oct 14, 2014

Conversation

armon
Copy link
Member

@armon armon commented Oct 13, 2014

As the title says, moving from the bespoke API to the helper Schema. This also adds support for ACL tokens.

@mitchellh
Copy link
Contributor

Well, it can't be worse.

@mitchellh
Copy link
Contributor

;)

// Resolve the datacenter first, all the other keys are dependent
// on this.
var dc string
if v := d.Get("datacenter"); v != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

This actually won't work, Get always returns the zero value. You need to do GetOk, which does what you expect...

@mitchellh
Copy link
Contributor

BRING IT IN

mitchellh added a commit that referenced this pull request Oct 14, 2014
Port Consul provider to new helper.Schema, add Token support
@mitchellh mitchellh merged commit 6fea336 into master Oct 14, 2014
@mitchellh mitchellh deleted the f-consul-schema branch October 14, 2014 19:21
@ghost ghost locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants