Fix usage of non-defiened retries_wait variable
Change-Id: I5cb745a5f2c6be3ac6f68447b1bd70d988e0c472
Related: PROD-26997 (PROD:26997)
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 982a9c4..006df14 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -277,7 +277,7 @@
out = runSaltCommand(params.saltId, 'local', ['expression': params.target, 'type': 'compound'], 'state.sls', params.batch, params.saltArgs.reverse(), kwargs, -1, params.read_timeout)
// failOnError should be passed as true because we need to throw exception for retry block handler
checkResult(out, true, params.output, true, retriesCounter < params.retries) //disable ask on error for every interation except last one
- sleep(retries_wait)
+ sleep(params['retries_wait'])
}
} else {
// we have to reverse order in saltArgs because salt state have to be first