From 295d207245a626e57e1024504ba9e0098081adbc Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: May 06 2020 06:55:28 +0000 Subject: ipatests: Cleanup 'collect_logs' decorator The last usage of 'collect_logs' decorator has been removed in 1d70ce850e9. So, it could be safely removed. Fixes: https://pagure.io/freeipa/issue/8265 Signed-off-by: Stanislav Levin Reviewed-By: Rob Crittenden Signed-off-by: Stanislav Levin Reviewed-By: Christian Heimes --- diff --git a/ipatests/pytest_ipa/integration/tasks.py b/ipatests/pytest_ipa/integration/tasks.py index 7eb178a..5743407 100755 --- a/ipatests/pytest_ipa/integration/tasks.py +++ b/ipatests/pytest_ipa/integration/tasks.py @@ -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