Browse Source

fix quotations in dhclient hooks (#11946)

pull/11939/head
Jan Breitkopf 4 days ago
committed by GitHub
parent
commit
d7962fb46e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions
  1. 4
      roles/kubernetes/preinstall/tasks/0100-dhclient-hooks.yml

4
roles/kubernetes/preinstall/tasks/0100-dhclient-hooks.yml

@ -4,7 +4,11 @@
# 1 is the 2nd item of a tuple in items()
block: |-
{% for key, val in dhclient_supersede.items() | rejectattr(1, '==', []) -%}
{% if key == "domain-name-servers" -%}
supersede {{ key }} {{ val | join(',') }};
{% else -%}
supersede {{ key }} "{{ val | join('","') }}";
{% endif -%}
{% endfor %}
path: "{{ dhclientconffile }}"
create: true

Loading…
Cancel
Save