Commit 8d46eb27 authored by Vincent Pelletier's avatar Vincent Pelletier

No need to rename variable if it's properly names to begin with.

parent d065de94
...@@ -36,13 +36,9 @@ class Recipe(GenericBaseRecipe): ...@@ -36,13 +36,9 @@ class Recipe(GenericBaseRecipe):
self.mode = int(self.directory.pop('mode', '700'), 8) self.mode = int(self.directory.pop('mode', '700'), 8)
def install(self): def install(self):
for path in sorted(self.directory.values()):
for directory in sorted(self.directory.values()):
path = directory
if not os.path.exists(path): if not os.path.exists(path):
os.makedirs(path, self.mode) os.makedirs(path, self.mode)
elif not os.path.isdir(path): elif not os.path.isdir(path):
raise OSError("%s path exits, but it's not a directory.") raise OSError("%s path exits, but it's not a directory.")
return [] return []
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