[PATCH] Fix indentation of line to remove cancelled actions from the list. (#500932)

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

 



The one thing that has to happen when cancelling any action is that it
must be removed from the DeviceTree's list of actions.
---
 storage/devicetree.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index f78481f..9201e9d 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -772,7 +772,8 @@ class DeviceTree(object):
         elif action.isFormat() and \
              (action.isCreate() or action.isMigrate() or action.isResize()):
             action.cancel()
-            self._actions.remove(action)
+
+        self._actions.remove(action)
 
     def findActions(self, device=None, type=None, object=None, path=None):
         """ Find all actions that match all specified parameters.
-- 
1.6.0.6

_______________________________________________
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