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

data source networking_subnet_v2 fails on certain attributes #198

Closed
yanndegat opened this issue Dec 14, 2017 · 1 comment · Fixed by #199
Closed

data source networking_subnet_v2 fails on certain attributes #198

yanndegat opened this issue Dec 14, 2017 · 1 comment · Fixed by #199

Comments

@yanndegat
Copy link
Contributor

Terraform Version

v0.11.1

Affected Resource(s)

  • datasource: openstack_networking_subnet_v2

Terraform Configuration Files

data "openstack_networking_subnet_v2" "subnet" {
  subnet_id    = "xxx"
}
resource "openstack_networking_port_v2" "port" {
  name                  = "test_port"
  network_id         = "${data.openstack_networking_subnet_v2.subnet.network_id}"
  admin_state_up  = "true"
}

Expected Behavior

should be ok

Actual Behavior

Resource 'data.openstack_networking_subnet_v2.subnet' does
not have attribute 'network_id' for variable 'data.openstack_networking_subnet_v2.subnet.network_id'

@yanndegat
Copy link
Contributor Author

in fact a number of attributes in the datasource schema definition may miss the computed attribute set to true.

yanndegat added a commit to yanndegat/terraform-provider-openstack that referenced this issue Dec 14, 2017
yanndegat added a commit to yanndegat/terraform-provider-openstack that referenced this issue Dec 14, 2017
jtopjian pushed a commit that referenced this issue Dec 14, 2017
* datasource openstack_networking_subnet_v2: add tests

Tests illustrate issue #198

* datasource openstack_networking_subnet_v2: fix #198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant