[PATCH 12/15] Remove an old hack with action registration.

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

 



This will probably break the md dialogs and possibly others.
---
 pyanaconda/storage/devicetree.py |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 6914c6e..fb40cf6 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -410,14 +410,8 @@ class DeviceTree(object):
            action.device not in self._devices:
             raise DeviceTreeError("device is not in the tree")
         elif (action.isCreate and action.isDevice):
-            # this allows multiple create actions w/o destroy in between;
-            # we will clean it up before processing actions
-            #raise DeviceTreeError("device is already in the tree")
             if action.device in self._devices:
-                self._removeDevice(action.device)
-            for d in self._devices:
-                if d.path == action.device.path:
-                    self._removeDevice(d)
+                raise DeviceTreeError("device is already in the tree")
 
         if action.isCreate and action.isDevice:
             self._addDevice(action.device)
-- 
1.7.3.4

_______________________________________________
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