aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilien Macchi <emilien@redhat.com>2017-04-07 11:54:48 -0400
committerMartin Mágr <mmagr@redhat.com>2017-04-24 11:56:02 +0200
commit876105e68c649039cdbe8dfcba441eb334ffad8a (patch)
treec852443d4289163073dae9aa8387693aafbc7e6f
parent374b101683eb695b4aad44cb086c1a1748042d12 (diff)
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 (cherry picked from commit deb9b4cad5a59e650922067841604a4bc121c228)
-rw-r--r--puppet/services/monitoring/sensu-client.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/puppet/services/monitoring/sensu-client.yaml b/puppet/services/monitoring/sensu-client.yaml
index aba2b1e..4b5f36a 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