summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Grover <andy@groveronline.com>2018-01-29 10:26:06 -0800
committerGitHub <noreply@github.com>2018-01-29 10:26:06 -0800
commit2d09ba47d2dd5e7cc31c3b3af3aa38acccf99049 (patch)
tree993f9acf587e79bb719528603501159cfad042d5
parent5b48b49a767183ad7898eb545eb8291b609ca718 (diff)
parent4a909fd73063cabe6f387590e388b9e77fa46c75 (diff)
downloadrtslib-fb-2d09ba47d2dd5e7cc31c3b3af3aa38acccf99049.tar.gz
Merge pull request #117 from fuzzykiller/fix_get_size_for_blk_dev
Fix unqualified reference to pyudev.Device
-rw-r--r--rtslib/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtslib/utils.py b/rtslib/utils.py
index ff1f7a5..3156610 100644
--- a/rtslib/utils.py
+++ b/rtslib/utils.py
@@ -149,7 +149,7 @@ def get_size_for_blk_dev(path):
@raises: DeviceNotFoundError if corresponding device not found
@raises: EnvironmentError, ValueError in some situations
'''
- device = Device.from_device_file(_CONTEXT, os.path.realpath(str(path)))
+ device = pyudev.Device.from_device_file(_CONTEXT, os.path.realpath(str(path)))
return _get_size_for_dev(device)
get_block_size = get_size_for_blk_dev