Merge pull request #1224 from hashicorp/b-consul-scheme

state/remote: allow https consul addresses
This commit is contained in:
Paul Hinze 2015-03-17 17:21:48 -04:00
commit 18a83347b5
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ func consulFactory(conf map[string]string) (Client, error) {
if addr, ok := conf["address"]; ok && addr != "" {
config.Address = addr
}
if scheme, ok := conf["scheme"]; ok && scheme != "" {
config.Scheme = scheme
}
client, err := consulapi.NewClient(config)
if err != nil {