sleep a bit more to allow vm internal udev to reconfigure networks for you

This commit is contained in:
Grant Gongaware 2017-10-18 14:58:57 -07:00
parent 9488f6f4a4
commit 282df594c6

View File

@ -58,12 +58,12 @@ func applyFn(ctx context.Context) error {
if err != nil {
return err
}
time.Sleep(5 * time.Second)
time.Sleep(10 * time.Second)
vmParams := map[string]string{
"net1": data.Get("net1").(string),
}
_, err = client.SetVmConfig(vmr, vmParams)
time.Sleep(10 * time.Second)
return err
default:
return fmt.Errorf("Unkown action: %s", act)