Browse Source

Merge pull request #1756 from kubernetes-incubator/fix_bool_assert

Fix bool check assert
pull/1767/merge
Spencer Smith 7 years ago
committed by GitHub
parent
commit
3d09c4be75
1 changed files with 2 additions and 1 deletions
  1. 3
      roles/kubernetes/preinstall/tasks/verify-settings.yml

3
roles/kubernetes/preinstall/tasks/verify-settings.yml

@ -30,7 +30,8 @@
- name: "Stop if known booleans are set as strings (Use JSON format on CLI: -e \"{'key': true }\")" - name: "Stop if known booleans are set as strings (Use JSON format on CLI: -e \"{'key': true }\")"
assert: assert:
that: item|type_debug == 'bool'
that: hostvars[inventory_hostname][item]|type_debug == 'bool'
msg: "{{hostvars[inventory_hostname][item]}} isn't a bool"
run_once: yes run_once: yes
with_items: with_items:
- kubeadm_enabled - kubeadm_enabled

Loading…
Cancel
Save