Test: made kinit_admin a returning function

In some cases we need to check the result of kinit and print out the error
message. Therefore we need it to return the result.

Reviewed-By: Milan Kubik <mkubik@redhat.com>
This commit is contained in:
Oleg Fayans 2016-11-01 09:54:12 +01:00 committed by Martin Basti
parent 8559791e0d
commit c7fd46e42a

View File

@ -673,8 +673,8 @@ def disconnect_replica(master, replica, domain_level=None):
def kinit_admin(host, raiseonerr=True):
host.run_command(['kinit', 'admin'], raiseonerr=raiseonerr,
stdin_text=host.config.admin_password)
return host.run_command(['kinit', 'admin'], raiseonerr=raiseonerr,
stdin_text=host.config.admin_password)
def uninstall_master(host, ignore_topology_disconnect=True,