Skip to content

Commit bd19738

Browse files
committed
fix testing with example file
1 parent 3c59957 commit bd19738

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mmv1/products/compute/InstantSnapshot.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ examples:
5555
primary_resource_name: 'fmt.Sprintf("tf-test-instant-snapshot%s", context["random_suffix"])'
5656
vars:
5757
instance_name: 'instant-snapshot'
58+
disk_name: 'example-disk'
5859
parameters:
5960
- name: 'sourceDisk'
6061
type: ResourceRef

mmv1/templates/terraform/examples/instant_snapshot_basic.tf.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "google_compute_disk" "foo" {
2-
name = "foo"
2+
name = "{{index $.Vars "disk_name"}}"
33
type = "pd-ssd"
44
size = 10
55
}

0 commit comments

Comments
 (0)