def _find_node_handler(fields):
    try:
        driver = fields['pm_type']
    except __HOLE__:
        raise exception.InvalidNode('pm_type (ironic driver to use) is '
                                    'required', node=fields)
    return _find_driver_handler(driver)
dataset/ETHPy150Open openstack/tripleo-common/tripleo_common/utils/nodes.py/_find_node_handler