Use shutdown instead of destroy

This commit is contained in:
dump_stack() 2018-07-11 23:49:10 +00:00
parent 2874b9feaf
commit 41411ebdbe

View File

@ -171,7 +171,7 @@ func stop(l *libvirt.Libvirt, name string) {
log.Fatal(err) log.Fatal(err)
} }
} }
err = l.DomainDestroy(dom) err = l.DomainShutdown(dom)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }