aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xc/py
diff options
context:
space:
mode:
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-01-22 01:40:31 +0000
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-01-22 01:40:31 +0000
commit8c5b39029fbd26f2ee67bfce556096d47ebac139 (patch)
tree4a8fcd374eefd0c3b09b2bed266325ce1c1eee4f /tools/xc/py
parent20db95795f7c9829ec7fd8782d0f96978a7532cf (diff)
downloadxen-8c5b39029fbd26f2ee67bfce556096d47ebac139.tar.gz
xen-8c5b39029fbd26f2ee67bfce556096d47ebac139.tar.bz2
xen-8c5b39029fbd26f2ee67bfce556096d47ebac139.zip
bitkeeper revision 1.686 (400f2a0fOr4fmsss35howfO9K7Gurg)
XenoUtil.py: Fix paremeter types in VBD setup.
Diffstat (limited to 'tools/xc/py')
-rw-r--r--tools/xc/py/XenoUtil.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/xc/py/XenoUtil.py b/tools/xc/py/XenoUtil.py
index db677e9b83..f17939a4a2 100644
--- a/tools/xc/py/XenoUtil.py
+++ b/tools/xc/py/XenoUtil.py
@@ -122,7 +122,7 @@ def lookup_raw_partn(partition):
if line:
return [ { 'device' : blkdev_name_to_number(drive),
'start_sector' : 0,
- 'nr_sectors' : string.atol(line) * 2,
+ 'nr_sectors' : int(line) * 2,
'type' : 'Disk' } ]
return None
@@ -136,8 +136,8 @@ def lookup_raw_partn(partition):
'size=\s*([0-9]+), Id=\s*(\S+).*$', line)
if m:
return [ { 'device' : blkdev_name_to_number(drive),
- 'start_sector' : string.atol(m.group(1)),
- 'nr_sectors' : string.atol(m.group(2)),
+ 'start_sector' : int(m.group(1)),
+ 'nr_sectors' : int(m.group(2)),
'type' : m.group(3) } ]
return None