Merge pull request #3358 from ansible/fix-async
Allow async to not need an args file since new-style modules have args embedded
This commit is contained in:
commit
a38bdfc720
1 changed files with 5 additions and 2 deletions
|
@ -122,8 +122,11 @@ if __name__ == '__main__':
|
||||||
jid = "%s.%d" % (sys.argv[1], os.getpid())
|
jid = "%s.%d" % (sys.argv[1], os.getpid())
|
||||||
time_limit = sys.argv[2]
|
time_limit = sys.argv[2]
|
||||||
wrapped_module = sys.argv[3]
|
wrapped_module = sys.argv[3]
|
||||||
argsfile = sys.argv[4]
|
if len(sys.argv) >= 5:
|
||||||
cmd = "%s %s" % (wrapped_module, argsfile)
|
argsfile = sys.argv[4]
|
||||||
|
cmd = "%s %s" % (wrapped_module, argsfile)
|
||||||
|
else:
|
||||||
|
cmd = wrapped_module
|
||||||
step = 5
|
step = 5
|
||||||
|
|
||||||
# setup job output directory
|
# setup job output directory
|
||||||
|
|
Loading…
Add table
Reference in a new issue