Use shutdown instead of destroy

This commit is contained in:
Mikhail Klementev 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)
}
}
err = l.DomainDestroy(dom)
err = l.DomainShutdown(dom)
if err != nil {
log.Fatal(err)
}