Commit 1d23627e authored by Lionel Morin's avatar Lionel Morin
Browse files

Fix rmdir for minion

parent 7516aa3b
Pipeline #494 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