Fix up python breakage for blkdev_name_to_number

Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
Keir Fraser committed 2008-06-30 10:01:44 +01:00
1 parent 53a29c4ca7
commit 2bb1ceab62
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ def blkdev_segment(name):
type: 'Disk' or identifying name for partition type
"""
val = None
n = blkdev_name_to_number(name)
(name, n) = blkdev_name_to_number(name)
if not n is None:
val = { 'device' : n,
'start_sector' : long(0),
+1 -1
View File
@@ -1123,7 +1123,7 @@ class XendConfig(dict):
try:
devid = int(dev2)
except ValueError:
devid = blkdev_name_to_number(dev2)
(xenbus, devid) = blkdev_name_to_number(dev2)
if devid == None:
log.debug("The device %s is not device name", dev2)
return None
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.