summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Grover <andy@groveronline.com>2014-09-19 10:32:46 -0700
committerAndy Grover <andy@groveronline.com>2014-09-19 10:32:46 -0700
commit2d194f591ab0a67cccebdddd26dfab52b576057f (patch)
tree631a3d784d232b66eede194102bdc49fc86cbbdb
parentdff8a0c6bcf2cee96475983ce6832089f2320149 (diff)
parent33c25eb871c04dd8f4073521784213616dd3ff80 (diff)
downloadrtslib-fb-2d194f591ab0a67cccebdddd26dfab52b576057f.tar.gz
Merge pull request #54 from afamilyman/patch-1
Update utils.py
-rw-r--r--rtslib/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtslib/utils.py b/rtslib/utils.py
index 180056b..b2e74a8 100644
--- a/rtslib/utils.py
+++ b/rtslib/utils.py
@@ -128,7 +128,7 @@ def get_blockdev_size(path):
return get_size("/sys/block/%s" % name)
except IOError:
# Maybe it's a partition?
- m = re.search(r'^([a-z0-9_-!]+)(\d+)$', name)
+ m = re.search(r'^([a-z0-9_\-!]+)(\d+)$', name)
if m:
# If disk name ends with a digit, Linux sticks a 'p' between it and
# the partition number in the blockdev name.