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

[PATCH] Only warn when swaps with no UUID are preexisting.



Related: rhbz#695740
---
 pyanaconda/storage/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index db4a67a..2ae5ae9 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -1194,7 +1194,7 @@ class Storage(object):
                                   "Although not strictly required in all cases, "
                                   "it will significantly improve performance "
                                   "for most installations."))
-        no_uuid = [s for s in swaps if not s.format.uuid]
+        no_uuid = [s for s in swaps if s.format.exists and not s.format.uuid]
         if no_uuid:
             warnings.append(_("At least one of your swap devices does not have "
                               "a UUID, which is common in swap space created "
-- 
1.7.3.4


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