change mode to octal for os.makedirs()
Partial implements: blueprint py33-support Change-Id: I7a4307dfd526821e96b5c04ff636e650f20b753a
This commit is contained in:
@@ -108,7 +108,7 @@ class Manager(utils.HookableMixin):
|
|||||||
cache_dir = os.path.expanduser(os.path.join(base_dir, uniqifier))
|
cache_dir = os.path.expanduser(os.path.join(base_dir, uniqifier))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.makedirs(cache_dir, 0755)
|
os.makedirs(cache_dir, 0o755)
|
||||||
except OSError:
|
except OSError:
|
||||||
# NOTE(kiall): This is typicaly either permission denied while
|
# NOTE(kiall): This is typicaly either permission denied while
|
||||||
# attempting to create the directory, or the directory
|
# attempting to create the directory, or the directory
|
||||||
|
Reference in New Issue
Block a user