Bläddra i källkod

fix pillar lookup and whitespacing

master
Niels Abspoel 8 år sedan
förälder
incheckning
3af8993dfb
1 ändrade filer med 11 tillägg och 12 borttagningar
  1. +11
    -12
      apt/templates/listchanges_config.jinja

+ 11
- 12
apt/templates/listchanges_config.jinja Visa fil

@@ -1,13 +1,12 @@
{% 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 }}]
{%- if frontend != None %}
frontend={{ frontend }}
@@ -26,6 +25,6 @@ which={{ which }}
{%- endif %}
{%- if browser != None %}
browser={{ browser }}
{%- endif %}
{% endif %}

{%- endfor %}
{% endfor %}

Laddar…
Avbryt
Spara