summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-03-16 17:48:17 -0500
committerDavid Lehman <dlehman@redhat.com>2009-03-16 21:30:14 -0500
commite23392f8d4aba295ce67f06193ff0bacc11da6e9 (patch)
tree0f8c64f7a4321ccd90f0fc3a7a9de2873b06d6d4
parent9db089bf2338d749375d9a41ec7bb5c9efd5fa0b (diff)
downloadanaconda-e23392f8d4aba295ce67f06193ff0bacc11da6e9.tar.gz
anaconda-e23392f8d4aba295ce67f06193ff0bacc11da6e9.tar.xz
anaconda-e23392f8d4aba295ce67f06193ff0bacc11da6e9.zip
Only schedule implicit format destruction if there is formatting to destroy.
No need to schedule unneeded actions for devices that are initially clean.
-rw-r--r--storage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/__init__.py b/storage/__init__.py
index cd99ca30b..84ce93e88 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -575,7 +575,7 @@ class Storage(object):
def destroyDevice(self, device):
""" Schedule destruction of a device. """
- if device.format.exists:
+ if device.format.exists and device.format.type:
# schedule destruction of any formatting while we're at it
self.devicetree.registerAction(ActionDestroyFormat(device))