fix assertions, use msg instead of message (#3913)

pull/4020/head
Sascha Marcel Schmidt 2019-01-09 20:01:47 +01:00 committed by Kubernetes Prow Robot
parent 1d5a9464e2
commit 435993891b
1 changed files with 6 additions and 2 deletions

View File

@ -8,7 +8,9 @@
- register: "clusterrolebinding_state"
command: "{{bin_dir}}/kubectl get clusterrolebinding heketi-gluster-admin -o=name --ignore-not-found=true"
changed_when: false
- assert: { that: "clusterrolebinding_state.stdout != \"\"", message: "Cluster role binding is not present." }
- assert:
that: "clusterrolebinding_state.stdout != \"\""
msg: "Cluster role binding is not present."
- register: "secret_state"
command: "{{bin_dir}}/kubectl get secret heketi-config-secret -o=name --ignore-not-found=true"
@ -24,4 +26,6 @@
- register: "secret_state"
command: "{{bin_dir}}/kubectl get secret heketi-config-secret -o=name --ignore-not-found=true"
changed_when: false
- assert: { that: "secret_state.stdout != \"\"", message: "Heketi config secret is not present." }
- assert:
that: "secret_state.stdout != \"\""
msg: "Heketi config secret is not present."