Merge "Fix string formatting in error messages"

This commit is contained in:
Zuul 2018-02-12 13:43:20 +00:00 committed by Gerrit Code Review
commit 1098ef8430
1 changed files with 5 additions and 6 deletions

View File

@ -781,16 +781,15 @@ def cluster_ready():
uuids.append(bootstrap_uuid) uuids.append(bootstrap_uuid)
if len(uuids) < min_size: if len(uuids) < min_size:
log("Fewer than minimum cluster size:{} percona units reporting " log("Fewer than minimum cluster size: "
"clustered".format(min_size), "{} percona units reporting clustered".format(min_size),
DEBUG) DEBUG)
return False return False
elif len(set(uuids)) > 1: elif len(set(uuids)) > 1:
raise Exception("Found inconsistent bootstrap uuids - %s" raise Exception("Found inconsistent bootstrap uuids: "
"".format((uuids))) "{}".format((uuids)))
else: else:
log("All {} percona units reporting clustered" log("All {} percona units reporting clustered".format(min_size),
"".format(min_size),
DEBUG) DEBUG)
return True return True