Merge pull request #1756 from kubernetes-incubator/fix_bool_assert

Fix bool check assert
This commit is contained in:
Spencer Smith 2017-10-10 10:38:53 -04:00 committed by GitHub
commit 3d09c4be75

View file

@ -30,7 +30,8 @@
- name: "Stop if known booleans are set as strings (Use JSON format on CLI: -e \"{'key': true }\")"
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
with_items:
- kubeadm_enabled