diff options
author | ewolinetz <ewolinet@redhat.com> | 2017-03-02 11:38:32 -0600 |
---|---|---|
committer | ewolinetz <ewolinet@redhat.com> | 2017-03-02 12:05:17 -0600 |
commit | 352917ae21424ba518d0fe4513dcc540c7698ae4 (patch) | |
tree | b6df7945f0571592b22042f989cdb4096e1c7801 /playbooks | |
parent | f7c801f77284da83ccc18aee771e11ce17f59dd2 (diff) | |
download | openshift-352917ae21424ba518d0fe4513dcc540c7698ae4.tar.gz openshift-352917ae21424ba518d0fe4513dcc540c7698ae4.tar.bz2 openshift-352917ae21424ba518d0fe4513dcc540c7698ae4.tar.xz openshift-352917ae21424ba518d0fe4513dcc540c7698ae4.zip |
Updating stdout check for changed_when
Diffstat (limited to 'playbooks')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml index 5d3af2c26..babb7191d 100644 --- a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml +++ b/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml @@ -176,7 +176,7 @@ policy reconcile-cluster-roles --additive-only=true --confirm -o name register: reconcile_cluster_role_result changed_when: - - reconcile_cluster_role_result.stdout.length > 0 + - reconcile_cluster_role_result.stdout != '' - reconcile_cluster_role_result.rc == 0 run_once: true @@ -192,7 +192,7 @@ when: origin_reconcile_bindings | bool or ent_reconcile_bindings | bool register: reconcile_bindings_result changed_when: - - reconcile_bindings_result.stdout.length > 0 + - reconcile_bindings_result.stdout != '' - reconcile_bindings_result.rc == 0 run_once: true @@ -200,9 +200,9 @@ command: > {{ openshift.common.client_binary }} adm --config={{ openshift.common.config_base }}/master/admin.kubeconfig policy reconcile-cluster-role-bindings system:build-strategy-jenkinspipeline --confirm -o name run_once: true - register: reconcile_jenkens_role_binding_result + register: reconcile_jenkins_role_binding_result changed_when: - - reconcile_jenkins_role_binding_result.stdout.length > 0 + - reconcile_jenkins_role_binding_result.stdout != '' - reconcile_jenkins_role_binding_result.rc == 0 when: openshift.common.version_gte_3_4_or_1_4 | bool @@ -211,7 +211,7 @@ {{ openshift.common.client_binary }} adm policy reconcile-sccs --confirm --additive-only=true -o name register: reconcile_scc_result changed_when: - - reconcile_scc_result.stdout.length > 0 + - reconcile_scc_result.stdout != '' - reconcile_scc_result.rc == 0 run_once: true |