Change Heka installation condidtion in SL pipeline
Change-Id: I257bd40f3826cf26f115bf8f8938baf75a4897c4
PROD-related: PROD-27751
(cherry picked from commit b7f023a2d7087494db0a0a85df28adb14c10f34a)
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index b91c1ac..e0d8dd4 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -944,7 +944,7 @@
salt.enforceState([saltId: master, target: "I@docker:swarm and I@prometheus:server ${extra_tgt}", state: 'prometheus'])
//Configure Remote Collector in Docker Swarm for Openstack deployments
- if (!common.checkContains('STACK_INSTALL', 'k8s')) {
+ if (salt.testTarget(master, "I@heka:remote_collector ${extra_tgt}")) {
salt.enforceState([saltId: master, target: "I@docker:swarm and I@prometheus:server ${extra_tgt}", state: 'heka.remote_collector', failOnError: false])
}