mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-12 09:11:55 -06:00
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:
parent
8559791e0d
commit
c7fd46e42a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user