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

[PATCH] Device destroy actions can only require other destroy actions. (#651589)



---
 pyanaconda/storage/deviceaction.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/deviceaction.py b/pyanaconda/storage/deviceaction.py
index e020a57..47de6b8 100644
--- a/pyanaconda/storage/deviceaction.py
+++ b/pyanaconda/storage/deviceaction.py
@@ -292,7 +292,7 @@ class ActionDestroyDevice(DeviceAction):
                   and this partition has a lower number
         """
         rc = False
-        if action.device.dependsOn(self.device):
+        if action.device.dependsOn(self.device) and action.isDestroy:
             rc = True
         elif (action.isDestroy and action.isDevice and
               isinstance(self.device, PartitionDevice) and
-- 
1.7.2.3


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