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

consul_keys data source ignores provider datacenter #9310

Closed
hexedpackets opened this issue Oct 10, 2016 · 1 comment
Closed

consul_keys data source ignores provider datacenter #9310

hexedpackets opened this issue Oct 10, 2016 · 1 comment

Comments

@hexedpackets
Copy link

Terraform Version

0.7.5

Affected Resource(s)

  • consul provider
  • consul_keys data source

Terraform Configuration Files

provider "consul" {
  address = "consul.service.consul:8500"
  datacenter = "${var.datacenter}"
}

data "consul_keys" "foobar" {
  key {
    name = "foobar"
    path = "services/foo/bar"
  }
}

outut "foobar" {
  value = "${data.consul_keys.foobar.var.foobar}"
}

Expected Behavior

The datacenter specified in the provider is used to retrieve the key.

Actual Behavior

The agent's default datacenter is used instead of the one specified in the provider, resulting in an empty or incorrect value.

Adding the datacenter argument to the consul_keys stanza as a workaround does cause the correct datacenter to be used.

@ghost
Copy link

ghost commented Apr 10, 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 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants