From ea0f2f440a95ba3b7f26d5514d21b694a4cf103e Mon Sep 17 00:00:00 2001 From: josedonizetti Date: Fri, 24 May 2019 13:43:54 -0300 Subject: [PATCH] Clean up kvm Remove code --- pkg/drivers/kvm/kvm.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/drivers/kvm/kvm.go b/pkg/drivers/kvm/kvm.go index 5cb9a78bb516..deafab33421e 100644 --- a/pkg/drivers/kvm/kvm.go +++ b/pkg/drivers/kvm/kvm.go @@ -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 {