Skip to content

Commit

Permalink
add refreshing before saving
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Apr 27, 2022
1 parent 84a8441 commit 7507cb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vmmanager6/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
}
d.SetId(fmt.Sprint(vmid))
logger.Debug().Int("vmid", vmid).Msgf("Finished VM read resulting in data: '%+v'", string(jsonString))
err = _resourceVmQemuRead(d, meta)
if err != nil {
return err
}

log.Print("[DEBUG][QemuVmCreate] vm creation done!")
lock.unlock()
return nil
Expand Down

0 comments on commit 7507cb4

Please sign in to comment.