From 613024972ad530ffe1b5acb7b8662d2e69c6d93d Mon Sep 17 00:00:00 2001 From: Tim Bielawa Date: Fri, 10 Mar 2017 08:44:47 -0800 Subject: Fix incorrect comparison when detecting petsets --- playbooks/common/openshift-cluster/upgrades/v3_5/validator.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'playbooks/common/openshift-cluster/upgrades') diff --git a/playbooks/common/openshift-cluster/upgrades/v3_5/validator.yml b/playbooks/common/openshift-cluster/upgrades/v3_5/validator.yml index 9c126033c..fb79f898f 100644 --- a/playbooks/common/openshift-cluster/upgrades/v3_5/validator.yml +++ b/playbooks/common/openshift-cluster/upgrades/v3_5/validator.yml @@ -35,7 +35,7 @@ kind: petsets register: l_do_petsets_exist - - name: FAIL ON Resource migration 'PetSets' unsupported + - name: Fail on unsupported resource migration 'PetSets' fail: msg: > PetSet objects were detected in your cluster. These are an @@ -62,6 +62,6 @@ $ oc get petsets --all-namespaces -o yaml | oc delete -f - --cascale=false when: # Search did not fail, valid resource type found - - l_do_petsets_exist.results.returncode == "0" + - l_do_petsets_exist.results.returncode == 0 # Items do exist in the search results - l_do_petsets_exist.results.results.0['items'] | length > 0 -- cgit v1.2.3