def extract_hadoop_xml_confs(configs):
    """Returns xml specific Hadoop configurations.

    :returns list of Hadoop parameters which should be passed into general
    configs like core-site.xml
    """

    lst = []
    for service, srv_confs in configs.items():
        if XML_CONFS.get(service):
            for param_name, param_value in srv_confs.items():
                for cfg_list in XML_CONFS[service]:
                    names = [cfg['name'] for cfg in cfg_list]
                    if names in param_name and param_value is not None:
                        lst.append((param_name, param_value))
    return lst
dataset/ETHPy150Open openstack/sahara/sahara/plugins/spark/config_helper.py/extract_hadoop_xml_confs/swapped operands of `in`