def extract_hadoop_environment_confs(configs):
    """Returns environment specific Hadoop configurations.

    :returns list of Hadoop parameters which should be passed via environment
    """

    lst = []
    for service, srv_confs in configs.items():
        if ENV_CONFS.get(service):
            for param_name, param_value in srv_confs.items():
                for cfg_name, cfg_format_str in ENV_CONFS[service].items():
                    if param_name == cfg_name and param_value is not None:
                        lst.append(param_value % cfg_format_str)
    return lst
dataset/ETHPy150Open openstack/sahara/sahara/plugins/spark/config_helper.py/extract_hadoop_environment_confs/swapped operands of `%`