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
This commit is contained in:
Imran Iqbal 2020-07-30 11:57:22 +01:00 committed by GitHub
commit 27afecb96a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}