Fixed salt state checking
Change-Id: Ic7329aecc850dd9ff03f31ad4418da0aaf6f97ac
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 5ec872d..e3835c4 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -296,7 +296,7 @@
}
resource = node[resKey]
common.debugMsg("checkResult: checking resource: ${resource}")
- if(resource instanceof String || !resource["result"] || (resource["result"] instanceof String && resource["result"] == "false")){
+ if(resource instanceof String || (resource["result"] instanceof String && resource["result"] != "true")){
if(env["ASK_ON_ERROR"] && env["ASK_ON_ERROR"] == "true"){
def prettyResource = common.prettyPrint(resource)
timeout(time:1, unit:'HOURS') {