[master 3/3] Don't warn about missing UUIDs for non-existent containers.

dwlehman installerbot-noreply at redhat.com
Tue Jul 28 21:16:22 UTC 2015


From: David Lehman <dlehman at redhat.com>

It's not possible for the container or its members to have UUIDs
until they have been created.
---
 blivet/devices/container.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/devices/container.py b/blivet/devices/container.py
index 0de6ca7..bd5353c 100644
--- a/blivet/devices/container.py
+++ b/blivet/devices/container.py
@@ -84,7 +84,7 @@ def _verifyMemberUuid(self, member, expect_equality=True, require_existence=True
         member_fmt_uuid = getattr(member.format, self._formatUUIDAttr)
 
         # If either UUID can not be obtained, nothing to check.
-        if not member_fmt_uuid or not self.uuid:
+        if self.exists and (not member_fmt_uuid or not self.uuid):
             log.warning("At least one UUID missing.")
             return None
 


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/5dd532203fe93a5ab055fb5691ea1088f0d7ec9c


More information about the anaconda-patches mailing list