Skip to content

Commit

Permalink
Merge pull request #39 from flavio/shutdown
Browse files Browse the repository at this point in the history
Use shutdown API to stop domain
  • Loading branch information
dhiltgen authored Apr 17, 2017
2 parents cdad5d3 + 33e4f26 commit 72c6ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func (d *Driver) Stop() error {
}

if s != state.Stopped {
err := d.VM.DestroyFlags(libvirt.DOMAIN_DESTROY_GRACEFUL)
err := d.VM.Shutdown()
if err != nil {
log.Warnf("Failed to gracefully shutdown VM")
return err
Expand Down

0 comments on commit 72c6ea9

Please sign in to comment.