Browse Source

Merge "Fix string formatting in error messages"

changes/52/543852/1
Zuul 4 years ago committed by Gerrit Code Review
parent
commit
1098ef8430
  1. 11
      hooks/percona_utils.py

11
hooks/percona_utils.py

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

Loading…
Cancel
Save