From: Emilien Macchi Date: Fri, 7 Apr 2017 15:54:48 +0000 (-0400) Subject: sensu: fix upgrade case when service is added X-Git-Tag: opnfv-6.0.0~798^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=deb9b4cad5a59e650922067841604a4bc121c228;p=apex-tripleo-heat-templates.git sensu: fix upgrade case when service is added When service is added during an upgrade, fix the ansible syntax to use the right variable for return code. Change-Id: I974699fb8b0dcbe5ffa6935c394df4ac8e7b21d4 --- diff --git a/puppet/services/monitoring/sensu-client.yaml b/puppet/services/monitoring/sensu-client.yaml index aba2b1ed..4b5f36ac 100644 --- a/puppet/services/monitoring/sensu-client.yaml +++ b/puppet/services/monitoring/sensu-client.yaml @@ -81,4 +81,4 @@ outputs: - name: Install sensu package if it was disabled tags: step3 yum: name=sensu state=latest - when: sensu_client.rc != 0 + when: sensu_client_enabled.rc != 0