Merge "Remove blank space after print"
This commit is contained in:
@@ -620,7 +620,7 @@ swift-ring-builder <builder_file> rebalance <seed>
|
|||||||
parts, balance = builder.rebalance(seed=get_seed(3))
|
parts, balance = builder.rebalance(seed=get_seed(3))
|
||||||
except exceptions.RingBuilderError as e:
|
except exceptions.RingBuilderError as e:
|
||||||
print '-' * 79
|
print '-' * 79
|
||||||
print ("An error has occurred during ring validation. Common\n"
|
print("An error has occurred during ring validation. Common\n"
|
||||||
"causes of failure are rings that are empty or do not\n"
|
"causes of failure are rings that are empty or do not\n"
|
||||||
"have enough devices to accommodate the replica count.\n"
|
"have enough devices to accommodate the replica count.\n"
|
||||||
"Original exception message:\n %s" % e.message
|
"Original exception message:\n %s" % e.message
|
||||||
@@ -645,7 +645,7 @@ swift-ring-builder <builder_file> rebalance <seed>
|
|||||||
builder.validate()
|
builder.validate()
|
||||||
except exceptions.RingValidationError as e:
|
except exceptions.RingValidationError as e:
|
||||||
print '-' * 79
|
print '-' * 79
|
||||||
print ("An error has occurred during ring validation. Common\n"
|
print("An error has occurred during ring validation. Common\n"
|
||||||
"causes of failure are rings that are empty or do not\n"
|
"causes of failure are rings that are empty or do not\n"
|
||||||
"have enough devices to accommodate the replica count.\n"
|
"have enough devices to accommodate the replica count.\n"
|
||||||
"Original exception message:\n %s" % e.message
|
"Original exception message:\n %s" % e.message
|
||||||
@@ -823,7 +823,7 @@ def main(arguments=None):
|
|||||||
for line in wrap(' '.join(cmds), 79, initial_indent='Quick list: ',
|
for line in wrap(' '.join(cmds), 79, initial_indent='Quick list: ',
|
||||||
subsequent_indent=' '):
|
subsequent_indent=' '):
|
||||||
print line
|
print line
|
||||||
print ('Exit codes: 0 = operation successful\n'
|
print('Exit codes: 0 = operation successful\n'
|
||||||
' 1 = operation completed with warnings\n'
|
' 1 = operation completed with warnings\n'
|
||||||
' 2 = error')
|
' 2 = error')
|
||||||
exit(EXIT_SUCCESS)
|
exit(EXIT_SUCCESS)
|
||||||
|
Reference in New Issue
Block a user