Skip to content

Commit

Permalink
file mod: rm unnecessary temp var to avoid shadowing outer mkdir() func
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert authored and basepi committed May 17, 2013
1 parent c9a614f commit 548c67e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions salt/modules/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -1761,7 +1761,6 @@ def makedirs_perms(name, user=None, group=None, mode='0755'):
salt '*' file.makedirs_perms /opt/code
'''
path = os.path
mkdir = os.mkdir
head, tail = path.split(name)
if not tail:
head, tail = path.split(head)
Expand All @@ -1774,7 +1773,7 @@ def makedirs_perms(name, user=None, group=None, mode='0755'):
raise
if tail == os.curdir: # xxx/newdir/. exists if xxx/newdir exists
return
mkdir(name)
os.mkdir(name)
check_perms(
name,
None,
Expand Down

0 comments on commit 548c67e

Please sign in to comment.