summaryrefslogtreecommitdiffstats
path: root/roles/calico_master/tasks
diff options
context:
space:
mode:
authorVadim Rutkovsky <vrutkovs@redhat.com>2018-01-17 12:43:10 +0100
committerVadim Rutkovsky <vrutkovs@redhat.com>2018-01-17 12:43:10 +0100
commitedc4a03f14bc2e501a38c4faef229d21fb26a162 (patch)
tree2d1cec72384a2f341436a262449f0d8d606bad30 /roles/calico_master/tasks
parentd5241bd08465db72d5a4c4c36d7c4a14f151d688 (diff)
downloadopenshift-edc4a03f14bc2e501a38c4faef229d21fb26a162.tar.gz
openshift-edc4a03f14bc2e501a38c4faef229d21fb26a162.tar.bz2
openshift-edc4a03f14bc2e501a38c4faef229d21fb26a162.tar.xz
openshift-edc4a03f14bc2e501a38c4faef229d21fb26a162.zip
Check rc for commands with openshift_client_binary and failed_when
This might mask some failures and continue instead of a failure
Diffstat (limited to 'roles/calico_master/tasks')
-rw-r--r--roles/calico_master/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/calico_master/tasks/main.yml b/roles/calico_master/tasks/main.yml
index 05415a4d6..834ebba64 100644
--- a/roles/calico_master/tasks/main.yml
+++ b/roles/calico_master/tasks/main.yml
@@ -23,7 +23,7 @@
-f {{ mktemp.stdout }}/calico-policy-controller.yml
--config={{ openshift.common.config_base }}/master/admin.kubeconfig
register: calico_create_output
- failed_when: ('already exists' not in calico_create_output.stderr) and ('created' not in calico_create_output.stdout)
+ failed_when: "('already exists' not in calico_create_output.stderr) and ('created' not in calico_create_output.stdout) and calico_create_output.rc != 0"
changed_when: ('created' in calico_create_output.stdout)
- name: Calico Master | Delete temp directory