Skip to content

Commit

Permalink
fix(tfv): Fix missing zone in compute instance
Browse files Browse the repository at this point in the history
  • Loading branch information
iyabchen committed Mar 16, 2023
1 parent 01bde43 commit d00ed7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions mmv1/third_party/validator/compute_instance.go.erb
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func expandComputeInstance(project string, d TerraformResourceData, config *Conf
MachineType: machineTypeUrl,
Metadata: metadata,
Name: d.Get("name").(string),
Zone: d.Get("zone").(string),
NetworkInterfaces: networkInterfaces,
Tags: resourceInstanceTags(d),
Labels: expandLabels(d),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@
"bar",
"foo"
]
}
},
"zone": "us-central1-a"
}
}
},
Expand All @@ -157,7 +158,7 @@
"boot": true,
"diskEncryptionKey": {
"kmsKeyName": "test-kms_key_self_link"
},
},
"mode": "READ_WRITE"
}
],
Expand All @@ -172,7 +173,8 @@
"scheduling": {
"automaticRestart": true
},
"tags": {}
"tags": {},
"zone": "us-central1-a"
}
}
}
Expand Down

0 comments on commit d00ed7f

Please sign in to comment.