fix checkResult

Change-Id: Ie2a618ad8f97b220b54926c8be2127b4fe6853aa
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 5bcdd1e..1cb1da6 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -187,7 +187,7 @@
             for (resource in node.value) {
                 print(resource.getClass().getName())
                 print(resource)
-                if (resource instanceof String || resource.value.result.toString().toBoolean() != true) {
+                if (resource instanceof String || (resource instanceof Boolean && resource == false) || (resource instanceof HashMap && resource.value.result.toString().toBoolean() != true)) {
                     throw new Exception("Salt state on node ${node.key} failed: ${node.value}")
                 }
             }