def create_generic_templating_dict(dashboard_info):
    """
    Generic templating dictionary: name just maps to value
    :param dashboard_info: Grafana dashboard API response
    :return: dict of {"name": "value"}
    """
    templates = {}

    templating_info = dashboard_info['dashboard']['templating']
    for template in filter(lambda template: template.get('current'), templating_info['list']):
        value = template['current']['value']
        name = template['name']

        if isinstance(value, list):
            value = ', '.join(value)
        elif value == '$__auto_interval':
            value = 'auto'

        templates[name] = value

    return templates