fix data_source_vnic_test

This commit is contained in:
Jake Champlin 2017-04-04 10:21:10 -04:00
parent 51162119b9
commit 15d93749e8
No known key found for this signature in database
GPG Key ID: DC31F41958EF4AC2
1 changed files with 9 additions and 3 deletions

View File

@ -50,7 +50,13 @@ resource "opc_compute_instance" "test" {
}
}
data "opc_compute_vnic" "foo" {
name = "test-vnic-data-%d"
}`, rInt, rInt, rInt, rInt)
data "opc_compute_network_interface" "eth0" {
instance_name = "${opc_compute_instance.test.name}"
instance_id = "${opc_compute_instance.test.id}"
interface = "eth0"
}
data "opc_compute_vnic" "foo" {
name = "${data.opc_compute_network_interface.eth0.vnic}"
}`, rInt, rInt, rInt)
}