fix data_source_vnic_test
This commit is contained in:
parent
51162119b9
commit
15d93749e8
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue