Skip to content

Commit

Permalink
feat: (IAC-1114) Use the 'search' test rather than find when checking…
Browse files Browse the repository at this point in the history
… node names for labelling purposes (#60)
  • Loading branch information
AWSmith0216 authored Sep 18, 2023
1 parent 1ab5716 commit 7ce0061
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/kubernetes/node/labels_taints/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
vars:
labels: "{{ item.value }}"
with_dict: "{{ node_labels }}"
when: ansible_nodename.find(item.key) != -1
when: ansible_nodename is search(item.key)
tags:
- install
- update
Expand All @@ -19,7 +19,7 @@
vars:
taints: "{{ item.value }}"
with_dict: "{{ node_taints }}"
when: ansible_nodename.find(item.key) != -1
when: ansible_nodename is search(item.key)
tags:
- install
- update

0 comments on commit 7ce0061

Please sign in to comment.