Improved output of salt errors
Change-Id: Ica7dc7403e4c6b0280ccc3d0e0c7d35a26fe312f
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 11d8ed6..ea38e32 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -350,9 +350,7 @@
input message: "False result on ${nodeKey} found, resource ${prettyResource}. \nDo you want to continue?"
}
}else{
- wrap([$class: 'AnsiColorBuildWrapper']) {
- print(String.format("Resource: %s\n\u001B[33m%s\u001B[0m", resKey, prettyResource))
- }
+ common.errorMsg(String.format("Resource: %s\n%s", resKey, prettyResource))
def errorMsg = "Salt state on node ${nodeKey} failed: ${prettyResource}."
if (failOnError) {
throw new Exception(errorMsg)