Incorporate review comments

This commit is contained in:
srikiz 2023-04-11 14:48:51 +05:30
parent 40899f5fc0
commit a96bdc754a
1 changed files with 10 additions and 6 deletions

View File

@ -235,12 +235,16 @@ type terraformDropletOptions struct {
func (_ *Droplet) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *Droplet) error {
tf := &terraformDropletOptions{
Image: e.Image,
Size: e.Size,
Region: e.Region,
Name: e.Name,
Tags: e.Tags,
SSHKey: []string{fi.ValueOf(e.SSHKey.KeyFingerprint)},
Image: e.Image,
Size: e.Size,
Region: e.Region,
Name: e.Name,
Tags: e.Tags,
VPCUUID: e.VPCUUID,
}
if e.SSHKey != nil {
tf.SSHKey = []string{fi.ValueOf(e.SSHKey.KeyFingerprint)}
}
if e.UserData != nil {