def convert(_log): if _log.__class__ == Log: return _log.__class__ = Log for machine in _log.machine_list: Machine.convert(machine) for workflow_exec in _log.workflow_execs: WorkflowExec.convert(workflow_exec)
def convert(_log): if _log.__class__ == Log: return _log.__class__ = Log for machine in _log.machine_list: Machine.convert(machine) for workflow_exec in _log.workflow_execs: WorkflowExec.convert(workflow_exec)