From: David Lehman <dlehman(a)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/5dd532203fe93a5ab055fb5691ea...