mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2025-03-24 07:12:04 +00:00
Use shutdown instead of destroy
This commit is contained in:
parent
2874b9feaf
commit
41411ebdbe
1 changed files with 1 additions and 1 deletions
2
appvm.go
2
appvm.go
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue