def _print_task(self, task):
    print(f"Status: {task['status']}")
    if ('perNode' in task):
        print('Details:')
        for (node, node_status) in task['perNode'].items():
            print('\tNode:', node)
            print('\tStatus:', node_status['status'])
            for field in ['path', 'statusCode', 'url', 'uploadStatusCode', 'uploadOutput']:
                if (field in node_status):
                    print('\t', field, ':', node_status[field])
        print()
def _print_task(self, task):
    print(f"Status: {task['status']}")
    if ('perNode' in task):
        print('Details:')
        for (node, node_status) in task['perNode'].items():
            print('\tNode:', node)
            print('\tStatus:', node_status['status'])
            for field in ['path', 'statusCode', 'url', 'uploadStatusCode', 'uploadOutput']:
                if (field in node_status):
                    print('\t', field, ':', node_status[field])
        print()