summaryrefslogtreecommitdiffstats
path: root/command-stubs/list-harddrives-stub
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-08-14 10:34:54 -0400
committerChris Lumens <clumens@redhat.com>2009-08-17 13:31:03 -0400
commitb53ba0773002e4e875743ef734647de483a1ea83 (patch)
tree0379daf5bd198452821e2376cd6268d0f4ddcbde /command-stubs/list-harddrives-stub
parentd91427d3670faf547b6d3fd73ae68a2cfcb81c88 (diff)
downloadanaconda-b53ba0773002e4e875743ef734647de483a1ea83.tar.gz
anaconda-b53ba0773002e4e875743ef734647de483a1ea83.tar.xz
anaconda-b53ba0773002e4e875743ef734647de483a1ea83.zip
Later pyparted will define DEVICE_DM, so change the test to use it.
Diffstat (limited to 'command-stubs/list-harddrives-stub')
-rwxr-xr-xcommand-stubs/list-harddrives-stub2
1 files changed, 1 insertions, 1 deletions
diff --git a/command-stubs/list-harddrives-stub b/command-stubs/list-harddrives-stub
index ae7e31dba..e854d6c85 100755
--- a/command-stubs/list-harddrives-stub
+++ b/command-stubs/list-harddrives-stub
@@ -24,7 +24,7 @@ import parted
def main(argv):
lst = set()
- for dev in filter(lambda d: d.type <= parted.DEVICE_SX8, parted.getAllDevices()):
+ for dev in filter(lambda d: d.type != parted.DEVICE_DM, parted.getAllDevices()):
disk = parted.Disk(dev)
for part in disk.partitions: