

def _process_metadata(coordinator, metadata):
    attributes = metadata.setdefault('attributes', {
        
    })
    coordinator.description = attributes.setdefault('description', coordinator.description)
    coordinator.deployment_dir = attributes.setdefault('deployment_dir', coordinator.deployment_dir)
    try:
        coordinator.workflow = Workflow.objects.get(name=metadata['workflow'], owner=coordinator.owner, managed=True)
    except Workflow.DoesNotExist:
        raise

dataset/ETHPy150Open cloudera/hue/apps/oozie/src/oozie/importlib/coordinators.py _process_metadata/original