mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Start work on #9560
This commit is contained in:
parent
a74a572e90
commit
cd4f0b3745
@ -119,9 +119,18 @@ def prep_trans_tar(opts, chunks, file_refs):
|
||||
trans_tar = salt.utils.mkstemp()
|
||||
file_client = salt.fileclient.LocalClient(opts)
|
||||
lowfn = os.path.join(gendir, 'lowstate.json')
|
||||
sync_refs = [
|
||||
'salt://_modules',
|
||||
'salt://_states',
|
||||
'salt://_grains',
|
||||
'salt://_renderers',
|
||||
'salt://_returners',
|
||||
'salt://_outputters',
|
||||
]
|
||||
with open(lowfn, 'w+') as fp_:
|
||||
fp_.write(json.dumps(chunks))
|
||||
for saltenv in file_refs:
|
||||
file_refs[saltenv].extend(sync_refs)
|
||||
env_root = os.path.join(gendir, saltenv)
|
||||
if not os.path.isdir(env_root):
|
||||
os.makedirs(env_root)
|
||||
|
Loading…
Reference in New Issue
Block a user