diff options
author | Chris Lumens <clumens@redhat.com> | 2006-01-09 20:12:27 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-01-09 20:12:27 +0000 |
commit | 7c2a5b8780e9b1292e62c00cca76860d3494ea0b (patch) | |
tree | 37052e06e4315cb101fe1253a039e8b21a1ce695 | |
parent | 60e013f9d2078af321ba0796a40d4e90c649bbc7 (diff) | |
download | anaconda-7c2a5b8780e9b1292e62c00cca76860d3494ea0b.tar.gz anaconda-7c2a5b8780e9b1292e62c00cca76860d3494ea0b.tar.xz anaconda-7c2a5b8780e9b1292e62c00cca76860d3494ea0b.zip |
None vs. 0 vs. "" fixes.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | partitions.py | 10 |
2 files changed, 6 insertions, 6 deletions
@@ -1,7 +1,7 @@ 2006-01-09 Chris Lumens <clumens@redhat.com> * partitions.py (Partitions.writeKS): Always write out a device - name for RAID devices. + name for RAID devices. None vs. 0 vs. "" fixes. 2006-01-09 David Cantrell <dcantrell@redhat.com> diff --git a/partitions.py b/partitions.py index b21a22d4a..6ee4b6b39 100644 --- a/partitions.py +++ b/partitions.py @@ -1185,23 +1185,23 @@ class Partitions: "--vgname=%s" %(vg.volumeGroupName,)]) if request.grow: - if request.startSize is not None: + if request.startSize: args.append("--size=%s" % (int(request.startSize),)) else: # shouldnt happen continue args.append("--grow") - if request.maxSizeMB is not None and int(request.maxSizeMB) > 0: + if request.maxSizeMB and int(request.maxSizeMB) > 0: args.append("--maxsize=%s" % (request.maxSizeMB,)) else: - if request.percent is not None: + if request.percent: args.append("--percent=%s" %(request.percent,)) - elif request.size is not None: + elif request.size: args.append("--size=%s" %(int(request.size),)) else: continue - + f.write("#logvol %s\n" % (string.join(args))) def deleteAllLogicalPartitions(self, part): |