mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-28 09:06:44 -06:00
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:
parent
c2608cfe8a
commit
43ac2d9ab3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user