summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-11-04 18:58:35 +0000
committerJeremy Katz <katzj@redhat.com>2004-11-04 18:58:35 +0000
commitb487890e39427d2f51ec4b32c9bc90be5d7f9bca (patch)
treeac7f68323ddd2df23895c459134ec1c969a5a091 /partitions.py
parentfdef8f802d251666a214e86f1c9e5d99be45fe21 (diff)
downloadanaconda-b487890e39427d2f51ec4b32c9bc90be5d7f9bca.tar.gz
anaconda-b487890e39427d2f51ec4b32c9bc90be5d7f9bca.tar.xz
anaconda-b487890e39427d2f51ec4b32c9bc90be5d7f9bca.zip
2004-11-04 Jeremy Katz <katzj@redhat.com>
* partitions.py (Partitions.writeKS): Have to have sizes as integers (#138109)
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/partitions.py b/partitions.py
index df53fe2f4..78d45b5cd 100644
--- a/partitions.py
+++ b/partitions.py
@@ -993,7 +993,7 @@ class Partitions:
# we have a billion ways to specify new partitions
elif request.type == REQUEST_NEW:
if request.size:
- args.append("--size=%s" % (request.size))
+ args.append("--size=%s" % (int(request.size),))
if request.size == 0:
args.append("--size=0")
if request.grow:
@@ -1119,7 +1119,7 @@ class Partitions:
if request.grow:
if request.startSize is not None:
- args.append("--size=%s" % (request.startSize,))
+ args.append("--size=%s" % (int(request.startSize),))
else:
# shouldnt happen
continue
@@ -1131,7 +1131,7 @@ class Partitions:
if request.percent is not None:
args.append("--percent=%s" %(request.percent,))
elif request.size is not None:
- args.append("--size=%s" %(request.size,))
+ args.append("--size=%s" %(int(request.size),))
else:
continue