def parse_configs_from_context(context, defaults):
    configs_dict = dict()
    for key, val in context.items():
        if str(key).startswith("CONF"):
            key_split = str(key).split(":")
            service = key_split[1]
            config = key_split[2]
            if service not in configs_dict:
                configs_dict[service] = dict()
            if (val is None or
                    unicode(defaults[service][config]) == unicode(val)):
                continue
            configs_dict[service][config] = val
    return configs_dict
dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/dashboards/project/data_processing/utils/workflow_helpers.py/parse_configs_from_context/original