Merge pull request #51 from BryceTech122/master

Fix cloudinit ready template generation
This commit is contained in:
Dom Del Nano 2023-01-21 00:06:16 -08:00 committed by GitHub
commit 79c6b508a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,12 @@ func (self *stepCreateInstance) Run(ctx context.Context, state multistep.StateBa
}
}
err = c.GetClient().VM.RemoveFromOtherConfig(c.GetSessionRef(), instance, "disks")
if err != nil {
ui.Error(fmt.Sprintf("Error removing disks from VM other-config: %s", err.Error()))
return multistep.ActionHalt
}
// Create VDI for the instance
sr, err := config.GetSR(c)