Hide password from cvp-finc tests output
Related-prod: PROD-22774
Change-Id: Iecf903046a487b1c1d2c95e071b86aa627b3d004
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 8c6384c..f4147e0 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -331,12 +331,13 @@
* @param batch salt batch parameter integer or string with percents (optional, default null - disable batch)
* @param output do you want to print output
* @param saltArgs additional salt args eq. ["runas=aptly"]
+ * @param replacing list with maps for deletion in info message (passwords, logins, etc)
* @return output of salt command
*/
-def cmdRun(saltId, target, cmd, checkResponse = true, batch=null, output = true, saltArgs = []) {
+def cmdRun(saltId, target, cmd, checkResponse = true, batch=null, output = true, saltArgs = [], replacing = []) {
def common = new com.mirantis.mk.Common()
def originalCmd = cmd
- common.infoMsg("Running command ${cmd} on ${target}")
+ common.infoSensitivityMsg("Running command ${cmd} on ${target}", true, replacing)
if (checkResponse) {
cmd = cmd + " && echo Salt command execution success"
}