Merge "Enforce docker states only if target exists" into release/2019.2.0
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 9020f82..2c6a182 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -268,7 +268,7 @@
       kwargs["queue"] = true
     }
 
-    if (params.optional == false || params.testTarget(params.saltId, params.target)){
+    if (params.optional == false || testTarget(params.saltId, params.target)){
         if (params.retries > 0){
             def retriesCounter = 0
             retry(params.retries){