Capitalize status key in stageMap
Change-Id: Ic9bb06740486b82ff5e6a3500c43ceba65a71204
diff --git a/src/com/mirantis/mk/Common.groovy b/src/com/mirantis/mk/Common.groovy
index 336b4dc..33d4831 100644
--- a/src/com/mirantis/mk/Common.groovy
+++ b/src/com/mirantis/mk/Common.groovy
@@ -785,14 +785,14 @@
input message: getColorizedString("We are going to execute stage \'${currentStage}\' on the following target ${target}.\nPlease review stage information above.", "yellow")
try {
return body.call()
- stageMap[currentStage]['status'] = "SUCCESS"
+ stageMap[currentStage]['Status'] = "SUCCESS"
} catch (Exception err) {
def msg = "Stage ${currentStage} failed with the following exception:\n${err}"
print getColorizedString(msg, "yellow")
common.errorMsg(err)
if (interactive){
input message: getColorizedString("Please make sure problem is fixed to proceed with retry. Ready to proceed?", "yellow")
- stageMap[currentStage]['status'] = "RETRYING"
+ stageMap[currentStage]['Status'] = "RETRYING"
stageWrapper(stageMap, currentStage, target, interactive, body)
} else {
error(msg)