Added logging output
Change-Id: I7504d0542ff4cc9962c0e07f794a09193ec45308
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 98f03a4..fce7f05 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -278,6 +278,7 @@
if(node.value[k] instanceof Map.Entry){
res = node.value[k].value
}
+ common.errorMsg("Checking resource: ${res}")
if(!res["result"] || (res["result"] instanceof String && res["result"] != "true")){
if (failOnError) {
throw new Exception("Salt state on node ${node.key} failed: ${res}. State output: ${node.value}")