Fixing orchestrateSystem function
Change-Id: I45bd05bc7ae83465fcaf2147794ca7750bc2e1d3
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 52c7a14..7b666ac 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -667,10 +667,11 @@
* @param saltId Salt Connection object or pepperEnv (the command will be sent using the selected method)
* @param target Orchestration target
* @param orchestrate Salt orchestrate params
+ * @param kwargs Salt orchestrate params
* @return output of salt command
*/
-def orchestrateSystem(saltId, target, orchestrate) {
- return runSaltCommand(saltId, 'runner', target, 'state.orchestrate', [orchestrate])
+def orchestrateSystem(saltId, target, orchestrate=[], kwargs = null) {
+ return runSaltCommand(saltId, 'runner', target, 'state.orchestrate', true, orchestrate, kwargs, -1, -1)
}
/**