ipatests: Cleanup 'collect_logs' decorator

The last usage of 'collect_logs' decorator has been removed
in 1d70ce850e. So, it could be safely removed.

Fixes: https://pagure.io/freeipa/issue/8265
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Stanislav Levin 2020-04-09 14:00:07 +03:00 committed by Christian Heimes
parent c2608cfe8a
commit 43ac2d9ab3

View File

@ -110,22 +110,6 @@ def setup_server_logs_collecting(host):
# setup_sssd_debugging)
def collect_logs(func):
def wrapper(*args):
try:
func(*args)
finally:
if hasattr(args[0], 'master'):
setup_server_logs_collecting(args[0].master)
if hasattr(args[0], 'replicas') and args[0].replicas:
for replica in args[0].replicas:
setup_server_logs_collecting(replica)
if hasattr(args[0], 'clients') and args[0].clients:
for client in args[0].clients:
setup_server_logs_collecting(client)
return wrapper
def check_arguments_are(slice, instanceof):
"""
:param: slice - tuple of integers denoting the beginning and the end