Support use of multiple of the same commands in LocalClient.run()
's compound mode
#68060
hvt
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the compound command mode of
LocalClient.cmd
like this:Now, if I want to issue another
cmd.run
(or any other Salt module / function multiple times for that matter), it seems this is not possible with the current API. Mainly because the result ofLocalClient.cmd()
(when using compound command mode) is keyed by the module's function name. Although this can be seen as handy, it does conflict with theLocalClient.cmd()
definition of using indexes to correlate thefun
andarg
parameters imo.Support for this use-case without a BC-breaking change does not seem possible, so perhaps a new
cmd_compound()
can be introduced, with this definition:Where
funs_args
(name is up for debate 😂 ) is a list of tuple, where the first tuple's element is thefun
and the second tuple's element is the list of arguments.WDYT?
Beta Was this translation helpful? Give feedback.
All reactions