Change in vdsm[master]: gluster: fix no attribute error
tjeyasin at redhat.com
tjeyasin at redhat.com
Mon May 18 12:19:53 UTC 2015
Timothy Asir has uploaded a new change for review.
Change subject: gluster: fix no attribute error
......................................................................
gluster: fix no attribute error
Change-Id: Ie4ee6f3d62e51c67db12b4859da6508c50e92753
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1209493
Signed-off-by: Timothy Asir Jeyasingh <tjeyasin at redhat.com>
---
M vdsm/gluster/storagedev.py
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/56/41056/1
diff --git a/vdsm/gluster/storagedev.py b/vdsm/gluster/storagedev.py
index db2ffec..02b0656 100644
--- a/vdsm/gluster/storagedev.py
+++ b/vdsm/gluster/storagedev.py
@@ -79,7 +79,10 @@
info['model'] = device.type
if device.format:
info['uuid'] = device.format.uuid or ''
- dev = udev.get_device(device.sysfsPath) or {}
+ dev = hasattr(udev, 'get_device') and udev.get_device(
+ device.sysfsPath) or hasattr(
+ udev, 'udev_get_device') and udev.udev_get_device(
+ device.sysfsPath) or {}
info['fsType'] = device.format.type or dev.get('ID_FS_TYPE', '')
if hasattr(device.format, 'mountpoint'):
info['mountPoint'] = device.format.mountpoint or ''
--
To view, visit https://gerrit.ovirt.org/41056
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie4ee6f3d62e51c67db12b4859da6508c50e92753
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Timothy Asir <tjeyasin at redhat.com>
More information about the vdsm-patches
mailing list