瀏覽代碼

Merge pull request #6 from yottatsa/master

Fix empty array get
tags/2016.12
Aleš Komárek 8 年之前
父節點
當前提交
bd2a6e3139
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      salt/minion/cert.sls

+ 1
- 1
salt/minion/cert.sls 查看文件

@@ -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…
取消
儲存