Shmuel Leib Melamud has uploaded a new change for review.

Change subject: vm: Detect RNG device by type
......................................................................

vm: Detect RNG device by type

In Vm._getUnderlyingRngDeviceInfo() method the RNG device must be
detected in self.conf['devices'] list by 'type' attribute, not 'device'.
See VmInfoBuilder.buildVmRngDevice() in the Engine for reference.

Change-Id: I31a1c38eec5be96e298e0f1dd5a7598c2212cb21
Signed-off-by: Shmuel Melamud <[email protected]>
---
M vdsm/virt/vm.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/95/40095/1

diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index 331cfcd..464d4aa 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -4198,7 +4198,7 @@
                     break
 
             for dev in self.conf['devices']:
-                if dev['device'] == hwclass.RNG and \
+                if dev['type'] == hwclass.RNG and \
                         caps.RNG_SOURCES[dev['specParams']['source']] == \
                         source and 'alias' not in dev:
                     dev['address'] = address


-- 
To view, visit https://gerrit.ovirt.org/40095
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I31a1c38eec5be96e298e0f1dd5a7598c2212cb21
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Shmuel Leib Melamud <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to