From c7fd46e42a9f5b4676415910b800e0340f77dc88 Mon Sep 17 00:00:00 2001 From: Oleg Fayans Date: Tue, 1 Nov 2016 09:54:12 +0100 Subject: 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 --- ipatests/test_integration/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipatests') diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py index 58b3a6510..5a9d526f0 100644 --- a/ipatests/test_integration/tasks.py +++ b/ipatests/test_integration/tasks.py @@ -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, -- cgit