don't overwrite args if they are passed to the script

This commit is contained in:
Daniel Wallace 2017-06-07 10:52:45 -06:00
parent 34dd9ea862
commit 6c7d68b97d

View File

@ -1080,7 +1080,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(