Looks ok, Regards, Hans On 04/07/2009 04:58 PM, Joel Granados Moreno wrote:
This is good for when we go back and have to reset the devicetree. --- storage/devicelibs/lvm.py | 5 +++++ storage/devicetree.py | 1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/storage/devicelibs/lvm.py b/storage/devicelibs/lvm.py index 452ccac..8cd6370 100644 --- a/storage/devicelibs/lvm.py +++ b/storage/devicelibs/lvm.py @@ -98,6 +98,11 @@ def lvm_cc_addFilterRejectRegexp(regexp): # compoes config once more. _composeConfig() + +def lvm_cc_resetFilter(): + global config_args_data + config_args_data["filterRejects"] = [] + config_args_data["filterAccepts"] = [] # End config_args handling code. # Names that should not be used int the creation of VGs diff --git a/storage/devicetree.py b/storage/devicetree.py index 7f882a5..8c41c50 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -204,6 +204,7 @@ class DeviceTree(object): self._ignoredDisks = [] for disk in ignored: self.addIgnoredDisk(disk) + lvm.lvm_cc_resetFilter() def addIgnoredDisk(self, disk): self._ignoredDisks.append(disk)
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list