@rest_initialiser(cluster_init_check=True, version_check=True)
def execute(self, opts):
    (tasks, errors) = self.rest.get_tasks()
    _exit_if_errors(errors)
    found = False
    for task in tasks:
        if (isinstance(task, dict) and ('type' in task) and (task['type'] == 'clusterLogsCollection')):
            found = True
            self._print_task(task)
    if (not found):
        print('No log collection tasks were found')
@rest_initialiser(cluster_init_check=True, version_check=True)
def execute(self, opts):
    (tasks, errors) = self.rest.get_tasks()
    _exit_if_errors(errors)
    found = False
    for task in tasks:
        if (isinstance(task, dict) and ('type' in task) and (task['type'] == 'clusterLogsCollection')):
            found = True
            self._print_task(task)
    if (not found):
        print('No log collection tasks were found')