Fix keys in checkResult function

Change-Id: I37d26f688e1138ba2f4ba0fba5e9b8ff72c3bde3
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 91da71f..ab00eb5 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -271,7 +271,7 @@
         }
         for (node in entry) {
             for (resource in node.value) {
-                if(!resource[result] || resource[result] != "true") {
+                if(!resource["result"] || resource["result"] != "true") {
                     if (failOnError) {
                         throw new Exception("Salt state on node ${node.key} failed: ${node.value}")
                     } else {