mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
a8429c2595
commit
04553cd3de
1 changed files with 1 additions and 1 deletions
|
@ -2272,7 +2272,7 @@ def exec_code_all(lang, code, cwd=None):
|
|||
salt '*' cmd.exec_code_all ruby 'puts "cheese"'
|
||||
'''
|
||||
codefile = salt.utils.mkstemp()
|
||||
with salt.utils.fopen(codefile, 'w+t') as fp_:
|
||||
with salt.utils.fopen(codefile, 'w+t', binary=False) as fp_:
|
||||
fp_.write(code)
|
||||
cmd = [lang, codefile]
|
||||
ret = run_all(cmd, cwd=cwd, python_shell=False)
|
||||
|
|
Loading…
Add table
Reference in a new issue