Selaa lähdekoodia

Fix empty array get

It was responsible for

    [CRITICAL] Rendering SLS 'base:salt.minion.cert' failed: Jinja variable 'dict object' has no attribute 'cfg01.mk20-lab-advanced.local'
    [ERROR   ] Data passed to highstate outputter is not a valid highstate return: {'local': ["Rendering SLS 'base:salt.minion.cert' failed: Jinja variable 'dict object' has no attribute 'cfg01.mk20-lab-advanced.local'"]}
tags/2016.12
Vladimir Eremin 8 vuotta sitten
vanhempi
commit
3c32aea063
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      salt/minion/cert.sls

+ 1
- 1
salt/minion/cert.sls Näytä tiedosto

@@ -69,7 +69,7 @@ salt_minion_cert_{{ cert_name }}_dirs:
- watch:
- x509: {{ cert_file }}

{%- for ca_path,ca_cert in salt['mine.get'](cert.host, 'x509.get_pem_entries')[cert.host].iteritems() %}
{%- for ca_path,ca_cert in salt['mine.get'](cert.host, 'x509.get_pem_entries').get(cert.host, {}).iteritems() %}

{%- if '/etc/pki/ca/'+cert.authority in ca_path %}


Loading…
Peruuta
Tallenna