Decreased verbosity of salt-calls
Change-Id: I181fc3f2b25a979f62a10b785b3cbcb465eabd46
diff --git a/src/com/mirantis/mk/Python.groovy b/src/com/mirantis/mk/Python.groovy
index 6e0655e..876299e 100644
--- a/src/com/mirantis/mk/Python.groovy
+++ b/src/com/mirantis/mk/Python.groovy
@@ -52,12 +52,15 @@
*
* @param path Path to virtualenv
* @param cmd Command to be executed
+ * @param silent dont print any messages (optional, default false)
*/
-def runVirtualenvCommand(path, cmd) {
+def runVirtualenvCommand(path, cmd, silent=false) {
def common = new com.mirantis.mk.Common()
virtualenv_cmd = "set +x; . ${path}/bin/activate; ${cmd}"
- common.infoMsg("[Python ${path}] Run command ${cmd}")
+ if(!silent){
+ common.infoMsg("[Python ${path}] Run command ${cmd}")
+ }
output = sh(
returnStdout: true,
script: virtualenv_cmd
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index c3995d5..eeda9c4 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -744,7 +744,7 @@
}
if (venv) {
- output = python.runVirtualenvCommand(venv, pepperCmd)
+ output = python.runVirtualenvCommand(venv, pepperCmd, true)
} else {
echo("[Command]: ${pepperCmd}")
output = sh (