Skip to content

Commit

Permalink
Clean up kvm Remove code
Browse files Browse the repository at this point in the history
  • Loading branch information
josedonizetti committed May 24, 2019
1 parent b65c740 commit 48237d9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/drivers/kvm/kvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,7 @@ func (d *Driver) Remove() error {
return errors.Wrap(err, "destroying running domain")
}

if err := dom.Undefine(); err != nil {
return err
}

return nil
return dom.Undefine()
}

func (d *Driver) destroyRunningDomain(dom *libvirt.Domain) error {
Expand Down

0 comments on commit 48237d9

Please sign in to comment.