Commit 0cb3bb68 authored by Bruno Boiget's avatar Bruno Boiget

Merge branch 'fix_rmdir' into 'develop'

Fix rmdir for minion

See merge request !10
parents 7516aa3b 1d23627e
Pipeline #495 passed with stage
in 0 seconds
......@@ -181,14 +181,15 @@ class SaltRunner(ZephirCommonController):
probes=True,
conffiles=True)
if path.isdir(minion_dir):
rmtree(minion_dir)
makedirs(minion_dir)
with open(creolefuncs_file_path, 'w') as fh:
fh.write(servermodel['creolefuncs'])
eoleconfig = {"eole":{"configuration": { "files":{}}}}
rmtree(minion_dir)
makedirs(minion_dir)
with open(creole_files_path, 'wb') as fh:
fh.write(base64.b64decode(servermodel['conffiles']))
tar = tarfile.open(creole_files_path,'r:gz')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment