This commit is contained in:
Joshua Boniface 2018-09-24 01:16:38 -04:00
parent 1d62c48288
commit 2ce0d8c85b
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ def fenceRouter(router_name, zk_conn, config):
def rebootViaIPMI(ipmi_hostname, ipmi_user, ipmi_password):
retcode = common.run_os_command('ipmitool -I lanplus -H {} -U {} -P {} chassis power reset'.format(
ipmi_hostname, ipmi_user, ipmi_password
)
))
if retcode == 0:
ansiiprint.echo('Successfully rebooted dead router', '', 'o')
return True