Fix string formatting in error messages
Currently, error messages are returned with the string formatting templates as-is. This seems like a last-minute line-length wrapping issue. This commit fixes the string formatting. Change-Id: I606f4b9be4e5597348ea42b41667c054965d2083
This commit is contained in:
parent
b68d29ce6c
commit
403aa2a2e0
|
@ -746,16 +746,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…
Reference in New Issue