mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Copy over the result, cleanup afterwards
This commit is contained in:
parent
c6792ee251
commit
d841164ae3
1 changed files with 4 additions and 0 deletions
|
@ -556,6 +556,10 @@ def gen_thin(cachedir, extra_mods='', overwrite=False, so_mods='',
|
|||
os.chdir(start_dir)
|
||||
tfp.close()
|
||||
|
||||
if _six.PY3:
|
||||
os.sync()
|
||||
shutil.move(tmp_thintar, thintar)
|
||||
|
||||
return thintar
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue