diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-07-23 22:01:36 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-07-23 22:01:36 +0000 |
commit | 73dc82e3df64d1711a09543e268711ac87bf4e19 (patch) | |
tree | 3d4085ea49eabc21eb468848adb8f1b4248fec28 /partitioning.py | |
parent | d37c39832cfe4026cd9be4219a0a861763e3bb94 (diff) | |
download | anaconda-73dc82e3df64d1711a09543e268711ac87bf4e19.tar.gz anaconda-73dc82e3df64d1711a09543e268711ac87bf4e19.tar.xz anaconda-73dc82e3df64d1711a09543e268711ac87bf4e19.zip |
handle numeric request ids too...
Diffstat (limited to 'partitioning.py')
-rw-r--r-- | partitioning.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/partitioning.py b/partitioning.py index 7a8ae71f9..11acce538 100644 --- a/partitioning.py +++ b/partitioning.py @@ -988,7 +988,8 @@ class Partitions: if request.fstype.getName() == "swap": args.append("swap") elif request.fstype.getName() == "software RAID": - if request.uniqueID[0:5] != "raid.": + if ((type(request.uniqueID) != type("")) or + (request.uniqueID[0:5] != "raid.")): args.append("raid.%s" % (request.uniqueID)) else: args.append("%s" % (request.uniqueID)) @@ -1069,7 +1070,7 @@ class Partitions: # silly raid member syntax raidmems = [] for member in request.raidmembers: - if member[0:5] != "raid.": + if (type(member) != type("")) or (member[0:5] != "raid."): raidmems.append("raid.%s" % (member)) else: raidmems.append(member) |