[PATCH] Only schedule implicit format destruction if there is formatting to destroy.

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

 



No need to schedule unneeded actions for devices that are initially
clean.
---
 storage/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index e4a7d43..943d2c3 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))
 
-- 
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