Fixed salt state checking
Change-Id: I5e5f7d02891f2ea40859b0275518ee05de19eb52
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 89a068d..60ccc26 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"] != null && !resource["result"] || (resource["result"] instanceof String && resource["result"] == "false")){
+ if(resource instanceof String || (resource["result"] != null && !resource["result"]) || (resource["result"] instanceof String && resource["result"] == "false")){
if(env["ASK_ON_ERROR"] && env["ASK_ON_ERROR"] == "true"){
def prettyResource = common.prettyPrint(resource)
timeout(time:1, unit:'HOURS') {