Browse Source

fix pillar lookup and whitespacing

master
Niels Abspoel 8 years ago
parent
commit
3af8993dfb
1 changed files with 11 additions and 12 deletions
  1. +11
    -12
      apt/templates/listchanges_config.jinja

+ 11
- 12
apt/templates/listchanges_config.jinja View File

{% set apt = pillar.get('apt', {}) -%}
{% set unattended = apt.get('listchanges', {}) -%}
{%- for profile_name, profile_details in listchanges.get('profiles', {}).items() %}
{%- set frontend = profile_details.get('frontend', None) %}
{%- set email_address = profile_details.get('email_address', None) %}
{%- set confirm = profile_details.get('confirm', None) %}
{%- set save_seen = profile_details.get('save_seen', None) %}
{%- set which = profile_details.get('which', None) %}
{%- set browser = profile_details.get('browser', None %}

{%- set apt = pillar.get('apt', {}) -%}
{%- set listchanges = apt.get('listchanges', {}) -%}
{%- for profile_name, profile_details in listchanges.get('profiles', {}).items() -%}
{%- set frontend = profile_details.get('frontend', None) -%}
{%- set email_address = profile_details.get('email_address', None) -%}
{%- set confirm = profile_details.get('confirm', None) -%}
{%- set save_seen = profile_details.get('save_seen', None) -%}
{%- set which = profile_details.get('which', None) -%}
{%- set browser = profile_details.get('browser', None) -%}
[{{ profile_name }}] [{{ profile_name }}]
{%- if frontend != None %} {%- if frontend != None %}
frontend={{ frontend }} frontend={{ frontend }}
{%- endif %} {%- endif %}
{%- if browser != None %} {%- if browser != None %}
browser={{ browser }} browser={{ browser }}
{%- endif %}
{% endif %}


{%- endfor %}
{% endfor %}

Loading…
Cancel
Save