Fix helpers.common.rebalance_swift_ring method

After recent refactoring of SSH manager executing
a command on a remote by default raises exception in
case the command exit code is any other than 0.
This effected in sporadical fails of
helpers.common.rebalance_swift_ring method, where
rebalance used to be done several times in some tests
and due to abovementioned change started to fail after
the very first unsuccessful attempt.

Change-Id: Ifbc832b1dad53b33ca223d3500306c386bab0d91
Closes-Bug: #1604271
This commit is contained in:
Dmitriy Kruglov 2016-09-20 09:01:55 +00:00
parent ac18df4513
commit cfb610e520

View File

@ -309,7 +309,7 @@ class Common(object):
checkers.check_swift_ring(controller_ip)
break
except AssertionError:
result = ssh.execute_on_remote(ip=controller_ip, cmd=cmd)
result = ssh.execute(controller_ip, cmd)
logger.debug("command execution result is {0}".format(result))
else:
checkers.check_swift_ring(controller_ip)