Browse Source

fix minion proxy, if devices not defined

pull/41/head
Petr Michalec 7 years ago
parent
commit
e0d1980267
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      salt/minion/proxy.sls

+ 2
- 2
salt/minion/proxy.sls View File

@@ -2,7 +2,7 @@

{%- set napalm = false %}

{%- for proxy_name, proxy_device in proxy.device.iteritems() %}
{%- for proxy_name, proxy_device in proxy.get('device', {}).iteritems() %}

{%- if proxy_device.engine == 'napalm' %}

@@ -39,7 +39,7 @@ napalm:

{%- endif %}

{%- for proxy_name, proxy_device in proxy.device.iteritems() %}
{%- for proxy_name, proxy_device in proxy.get('device', {}).iteritems() %}

salt_proxy_{{ proxy_name }}_service:
service.running:

Loading…
Cancel
Save