mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #41638 from gtmanfred/cmdscript
don't overwrite args if they are passed to the script
This commit is contained in:
commit
8926d1c731
@ -1081,7 +1081,7 @@ def script(name,
|
||||
source = name
|
||||
|
||||
# If script args present split from name and define args
|
||||
if len(name.split()) > 1:
|
||||
if not cmd_kwargs.get('args', None) and len(name.split()) > 1:
|
||||
cmd_kwargs.update({'args': name.split(' ', 1)[1]})
|
||||
|
||||
cret = mod_run_check(
|
||||
|
Loading…
Reference in New Issue
Block a user