Skip to content

Commit

Permalink
fix-mistake-regex-for-resolv-conf (kubernetes-sigs#9523)
Browse files Browse the repository at this point in the history
  • Loading branch information
yankay authored and enneitex committed Jan 25, 2023
1 parent e29cd38 commit 8c1c2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubernetes/preinstall/tasks/0040-set_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

- name: get currently configured nameservers
set_fact:
configured_nameservers: "{{ resolvconf_slurp.content | b64decode | regex_findall('\\s*nameserver\\s*(.*)') | ipaddr }}"
configured_nameservers: "{{ resolvconf_slurp.content | b64decode | regex_findall('^nameserver\\s*(.*)', multiline=True) | ipaddr }}"
when: resolvconf_slurp.content is defined

when: resolvconf_stat.stat.exists is defined and resolvconf_stat.stat.exists
Expand Down

0 comments on commit 8c1c2c4

Please sign in to comment.