瀏覽代碼

Merge pull request #188 from baby-gnu/fix/omit-ip-address-on-older-platform

fix(jinja): omit_ip_address don't work on some platform
tags/v1.2.2
Imran Iqbal 4 年之前
父節點
當前提交
27afecb96a
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      openssh/files/default/ssh_known_hosts

+ 1
- 1
openssh/files/default/ssh_known_hosts 查看文件

@@ -6,7 +6,7 @@
{%- macro known_host_entry(host, host_names, keys, include_localhost, omit_ip_address) %}

{#- Get IPv4 and IPv6 addresses from the DNS #}
{%- if not (omit_ip_address is sameas true or host in omit_ip_address) %}
{%- if not ((omit_ip_address is sameas true) or (host in omit_ip_address)) %}
{%- set ip4 = salt['dig.A'](host) -%}
{%- set ip6 = salt['dig.AAAA'](host) -%}
{%- else %}

Loading…
取消
儲存