Check for None before calling method (VM rename fix)
This commit is contained in:
parent
39918fa9e2
commit
27b031c59f
@ -554,8 +554,10 @@ class QubesVm(object):
|
||||
raise QubesException("Cannot rename VM installed by RPM -- first clone VM and then use yum to remove package.")
|
||||
|
||||
self.pre_rename(name)
|
||||
if self.libvirt_domain:
|
||||
self.libvirt_domain.undefine()
|
||||
self._libvirt_domain = None
|
||||
if self._qdb_connection:
|
||||
self._qdb_connection.close()
|
||||
self._qdb_connection = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user