Re: [PATCH 1/3] Fix "ignoredisk --only-use=___" handling (#738186)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/16/11 11:30, Chris Lumens wrote:
diff --git a/partedUtils.py b/partedUtils.py
index 147c2f8..cf663c3 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -696,6 +696,7 @@ class DiskSet:
                          testList.append(disk)

          driveList = filter(lambda x: x not in testList, self.driveList())
+        driveList = filter(lambda x: x in DiskSet.exclusiveDisks, driveList)
          DiskSet.mdList.extend(raid.startAllRaid(driveList))

      def stopMdRaid(self):

You probably want to first check that exclusiveDisks is not empty.

Whoops, right.

if DiskSet.exclusiveDisks != []:
    driveList = filter(lambda x: x in DiskSet.exclusiveDisks, driveList)

--
David Cantrell <dcantrell@xxxxxxxxxx>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Westford, MA | EST5EDT

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux