mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-11 13:34:49 -05:00
Various cleanup and sync between libvirtobject classes
This commit is contained in:
@@ -24,22 +24,18 @@ from virtManager.libvirtobject import vmmLibvirtObject
|
||||
|
||||
|
||||
class vmmNodeDevice(vmmLibvirtObject):
|
||||
def __init__(self, conn, backend, name):
|
||||
vmmLibvirtObject.__init__(self, conn)
|
||||
|
||||
self.name = name
|
||||
self._backend = backend
|
||||
def __init__(self, conn, backend, key):
|
||||
vmmLibvirtObject.__init__(self, conn, backend, key)
|
||||
|
||||
self._name = key
|
||||
self._virtinst_obj = None
|
||||
|
||||
self.get_virtinst_obj()
|
||||
|
||||
def _XMLDesc(self, flags):
|
||||
return self._backend.XMLDesc(flags)
|
||||
|
||||
def get_name(self):
|
||||
return self.name
|
||||
|
||||
return self._name
|
||||
def is_active(self):
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user