modified file to pass around a 0.14 salt bug: makedirs does not create dirs, but makedirs_perms does. I believe the mode=None params is incorectly passed
authorPaul Tonelli <paul.tonelli@logilab.fr>
Tue, 26 Mar 2013 14:30:17 +0100
changeset 106 0ae1c1b51230
parent 105 cf42f99ebf05
child 107 bbbd2e0ec71b
modified file to pass around a 0.14 salt bug: makedirs does not create dirs, but makedirs_perms does. I believe the mode=None params is incorectly passed
_states/archive.py
--- a/_states/archive.py	Tue Mar 26 10:54:59 2013 +0100
+++ b/_states/archive.py	Tue Mar 26 14:30:17 2013 +0100
@@ -107,7 +107,7 @@
     else:
         log.debug("Archive file {0} is already in cache", name)
 
-    __salt__['file.makedirs'](name)
+    __salt__['file.makedirs_perms'](name)
 
     if archive_format in ('zip', 'rar'):
         log.debug("Extract %s in %s", filename, name)