Skip to content

Commit 75c2635

Browse files
chore(tests): change hcl syntax
1 parent 0679eeb commit 75c2635

23 files changed

+99
-99
lines changed

cloudstack/data_source_cloudstack_ipaddress_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ resource "cloudstack_ipaddress" "ipaddress-resource" {
5959
}
6060
6161
output "ipaddress-output" {
62-
value = "${data.cloudstack_ipaddress.ipaddress-data-source}"
62+
value = data.cloudstack_ipaddress.ipaddress-data-source
6363
}
6464
`

cloudstack/data_source_cloudstack_user_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ data "cloudstack_user" "user-data-source"{
6464
}
6565
6666
output "user-output" {
67-
value = "${data.cloudstack_user.user-data-source}"
67+
value = data.cloudstack_user.user-data-source
6868
}
6969
`

cloudstack/data_source_cloudstack_volume_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ data "cloudstack_zone" "zone-data-source" {
5959
6060
resource "cloudstack_volume" "volume-resource"{
6161
name = "TestVolume"
62-
disk_offering_id = "${cloudstack_disk_offering.disk-offering.id}"
63-
zone_id = "${data.cloudstack_zone.zone-data-source.id}"
62+
disk_offering_id = cloudstack_disk_offering.disk-offering.id
63+
zone_id = data.cloudstack_zone.zone-data-source.id
6464
}
6565
6666
data "cloudstack_volume" "volume-data-source"{

cloudstack/data_source_cloudstack_vpc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ data "cloudstack_vpc" "vpc-data-source"{
6767
}
6868
6969
output "vpc-output" {
70-
value = "${data.cloudstack_vpc.vpc-data-source}"
70+
value = data.cloudstack_vpc.vpc-data-source
7171
}
7272
`

cloudstack/resource_cloudstack_attach_volume_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ resource "cloudstack_network" "foo" {
5252
name = "terraform-test"
5353
display_name = "terraform"
5454
service_offering= "Small Instance"
55-
network_id = "${cloudstack_network.foo.id}"
55+
network_id = cloudstack_network.foo.id
5656
template = "CentOS 5.6 (64-bit) no GUI (Simulator)"
57-
zone = "${cloudstack_network.foo.zone}"
57+
zone = cloudstack_network.foo.zone
5858
expunge = true
5959
}
6060
6161
resource "cloudstack_disk" "foo" {
6262
name = "terraform-disk"
6363
disk_offering = "Small"
64-
zone = "${cloudstack_instance.foobar.zone}"
64+
zone = cloudstack_instance.foobar.zone
6565
}
6666
6767
resource "cloudstack_attach_volume" "foo" {

cloudstack/resource_cloudstack_disk_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ resource "cloudstack_instance" "foobar" {
237237
name = "terraform-test"
238238
display_name = "terraform"
239239
service_offering= "Small Instance"
240-
network_id = "${cloudstack_network.foo.id}"
240+
network_id = cloudstack_network.foo.id
241241
template = "CentOS 5.6 (64-bit) no GUI (Simulator)"
242-
zone = "${cloudstack_network.foo.zone}"
242+
zone = cloudstack_network.foo.zone
243243
expunge = true
244244
}
245245
@@ -248,6 +248,6 @@ resource "cloudstack_disk" "foo" {
248248
attach = true
249249
device_id = 4
250250
disk_offering = "Small"
251-
virtual_machine_id = "${cloudstack_instance.foobar.id}"
252-
zone = "${cloudstack_instance.foobar.zone}"
251+
virtual_machine_id = cloudstack_instance.foobar.id
252+
zone = cloudstack_instance.foobar.zone
253253
}`

cloudstack/resource_cloudstack_egress_firewall_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ resource "cloudstack_network" "foo" {
168168
}
169169
170170
resource "cloudstack_egress_firewall" "foo" {
171-
network_id = "${cloudstack_network.foo.id}"
171+
network_id = cloudstack_network.foo.id
172172
173173
rule {
174174
cidr_list = ["10.1.1.10/32"]
@@ -186,7 +186,7 @@ resource "cloudstack_network" "foo" {
186186
}
187187
188188
resource "cloudstack_egress_firewall" "foo" {
189-
network_id = "${cloudstack_network.foo.id}"
189+
network_id = cloudstack_network.foo.id
190190
191191
rule {
192192
cidr_list = ["10.1.1.10/32", "10.1.1.11/32"]

cloudstack/resource_cloudstack_firewall_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ resource "cloudstack_network" "foo" {
195195
}
196196
197197
resource "cloudstack_firewall" "foo" {
198-
ip_address_id = "${cloudstack_network.foo.source_nat_ip_id}"
198+
ip_address_id = cloudstack_network.foo.source_nat_ip_id
199199
200200
rule {
201201
cidr_list = ["10.0.0.0/24"]
@@ -220,7 +220,7 @@ resource "cloudstack_network" "foo" {
220220
}
221221
222222
resource "cloudstack_firewall" "foo" {
223-
ip_address_id = "${cloudstack_network.foo.source_nat_ip_id}"
223+
ip_address_id = cloudstack_network.foo.source_nat_ip_id
224224
225225
rule {
226226
cidr_list = ["10.0.0.0/24", "10.0.1.0/24"]

cloudstack/resource_cloudstack_instance_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ resource "cloudstack_instance" "foobar" {
321321
name = "terraform-test"
322322
display_name = "terraform-test"
323323
service_offering= "Small Instance"
324-
network_id = "${cloudstack_network.foo.id}"
324+
network_id = cloudstack_network.foo.id
325325
template = "CentOS 5.6 (64-bit) no GUI (Simulator)"
326326
zone = "Sandbox-simulator"
327327
user_data = "foobar\nfoo\nbar"
@@ -343,7 +343,7 @@ resource "cloudstack_instance" "foobar" {
343343
name = "terraform-test"
344344
display_name = "terraform-test"
345345
service_offering= "Small Instance"
346-
network_id = "${cloudstack_network.foo.id}"
346+
network_id = cloudstack_network.foo.id
347347
template = "CentOS 5.6 (64-bit) no GUI (Simulator)"
348348
zone = "Sandbox-simulator"
349349
start_vm = false
@@ -362,7 +362,7 @@ resource "cloudstack_instance" "foobar" {
362362
name = "terraform-updated"
363363
display_name = "terraform-updated"
364364
service_offering= "Medium Instance"
365-
network_id = "${cloudstack_network.foo.id}"
365+
network_id = cloudstack_network.foo.id
366366
template = "CentOS 5.6 (64-bit) no GUI (Simulator)"
367367
zone = "Sandbox-simulator"
368368
user_data = "foobar\nfoo\nbar"
@@ -381,7 +381,7 @@ resource "cloudstack_instance" "foobar" {
381381
name = "terraform-test"
382382
display_name = "terraform-test"
383383
service_offering= "Small Instance"
384-
network_id = "${cloudstack_network.foo.id}"
384+
network_id = cloudstack_network.foo.id
385385
ip_address = "10.1.1.123"
386386
template = "CentOS 5.6 (64-bit) no GUI (Simulator)"
387387
zone = "Sandbox-simulator"
@@ -404,10 +404,10 @@ resource "cloudstack_instance" "foobar" {
404404
name = "terraform-test"
405405
display_name = "terraform-test"
406406
service_offering= "Small Instance"
407-
network_id = "${cloudstack_network.foo.id}"
407+
network_id = cloudstack_network.foo.id
408408
template = "CentOS 5.6 (64-bit) no GUI (Simulator)"
409409
zone = "Sandbox-simulator"
410-
keypair = "${cloudstack_ssh_keypair.foo.name}"
410+
keypair = cloudstack_ssh_keypair.foo.name
411411
expunge = true
412412
}`
413413

@@ -424,9 +424,9 @@ resource "cloudstack_instance" "foobar" {
424424
name = "terraform-test"
425425
display_name = "terraform-test"
426426
service_offering= "Small Instance"
427-
network_id = "${cloudstack_network.foo.id}"
427+
network_id = cloudstack_network.foo.id
428428
template = "CentOS 5.6 (64-bit) no GUI (Simulator)"
429429
project = "terraform"
430-
zone = "${cloudstack_network.foo.zone}"
430+
zone = cloudstack_network.foo.zone
431431
expunge = true
432432
}`

cloudstack/resource_cloudstack_ipaddress_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ resource "cloudstack_network" "foo" {
144144
}
145145
146146
resource "cloudstack_ipaddress" "foo" {
147-
network_id = "${cloudstack_network.foo.id}"
147+
network_id = cloudstack_network.foo.id
148148
tags = {
149149
terraform-tag = "true"
150150
}
@@ -159,8 +159,8 @@ resource "cloudstack_vpc" "foo" {
159159
}
160160
161161
resource "cloudstack_ipaddress" "foo" {
162-
vpc_id = "${cloudstack_vpc.foo.id}"
163-
zone = "${cloudstack_vpc.foo.zone}"
162+
vpc_id = cloudstack_vpc.foo.id
163+
zone = cloudstack_vpc.foo.zone
164164
}`
165165

166166
const testAccCloudStackIPAddress_vpcid_with_network_id = `
@@ -180,7 +180,7 @@ resource "cloudstack_network" "foo" {
180180
}
181181
182182
resource "cloudstack_ipaddress" "foo" {
183-
vpc_id = "${cloudstack_vpc.foo.id}"
184-
network_id = "${cloudstack_network.foo.id}"
185-
zone = "${cloudstack_vpc.foo.zone}"
183+
vpc_id = cloudstack_vpc.foo.id
184+
network_id = cloudstack_network.foo.id
185+
zone = cloudstack_vpc.foo.zone
186186
}`

0 commit comments

Comments
 (0)