[PATCH virt-manager v2 2/4] hostdev: use method get_mdev_uuid()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use method get_mdev_uuid() to retrieve the UUID of MDEV node device
object.

Signed-off-by: Shalini Chellathurai Saroja <shalini@xxxxxxxxxxxxx>
---
 virtinst/devices/hostdev.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/devices/hostdev.py b/virtinst/devices/hostdev.py
index 6ef7a3f8..121c6653 100644
--- a/virtinst/devices/hostdev.py
+++ b/virtinst/devices/hostdev.py
@@ -82,7 +82,7 @@ class DeviceHostdev(Device):
                         _("Don't know how to generate nodedev for mdev type id '%s'") %
                         nodedev.type_id)
 
-            self.uuid = nodedev.name[5:].replace('_', '-')
+            self.uuid = nodedev.get_mdev_uuid()
 
         else:
             raise ValueError(_("Unknown node device type %s") % nodedev)
-- 
2.30.2




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux