Skip to content

Commit

Permalink
Don't warn about missing UUIDs for non-existent containers.
Browse files Browse the repository at this point in the history
It's not possible for the container or its members to have UUIDs
until they have been created.
  • Loading branch information
dwlehman committed Jul 28, 2015
1 parent b931cc7 commit 5dd5322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blivet/devices/container.py
Expand Up @@ -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

Expand Down

0 comments on commit 5dd5322

Please sign in to comment.