[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 3/3] Handle format actions in cancelAction()
- From: David Cantrell <dcantrell redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH 3/3] Handle format actions in cancelAction()
- Date: Wed, 1 Apr 2009 17:43:12 -1000
---
storage/devicetree.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/storage/devicetree.py b/storage/devicetree.py
index 4a1aeba..603aa74 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -749,6 +749,10 @@ class DeviceTree(object):
elif action.isDestroy() and action.isDevice():
# add the device back into the tree
self._addDevice(action.device)
+ elif action.isFormat() and \
+ (action.isCreate() or action.isMigrate() or action.isResize()):
+ action.cancel()
+ 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.2
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]