def _do_compute_node(self, context, primitive, version_manifest):
    try:
        target_version = version_manifest['ComputeNode']
        compute = objects.ComputeNodeList.get_all_by_host(context, primitive['host'])[0]
    except Exception:
        return
    primitive['compute_node'] = compute.obj_to_primitive(target_version=target_version, version_manifest=version_manifest)
def _do_compute_node(self, context, primitive, version_manifest):
    try:
        target_version = version_manifest['ComputeNode']
        compute = objects.ComputeNodeList.get_all_by_host(context, primitive['host'])[0]
    except Exception:
        return
    primitive['compute_node'] = compute.obj_to_primitive(target_version=target_version, version_manifest=version_manifest)