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

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



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


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