adjust virt-freezer code according to the new freeze cmd
@@ -49,6 +49,7 @@ func main() {
unfreeze := pflag.Bool("unfreeze", false, "Freeze VM")
name := pflag.String("name", "", "Name of the VirtualMachineInstance")
namespace := pflag.String("namespace", "", "Namespace of the VirtualMachineInstance")
+ unfreezeTimeout := pflag.String("unfreezeTimeout", "5m", "Timeout to automatically unfreeze the VirtualMachineInstance")
pflag.Parse()
@@ -75,7 +76,7 @@ func main() {
}
if *freeze {
- err = client.FreezeVirtualMachine(vmi)
+ err = client.FreezeVirtualMachine(vmi, *unfreezeTimeout)
if err != nil {
log.Log.Reason(err).Error("Freezeing VMI failed")
os.Exit(1)
