summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/vyos/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py
index 307decc87..92b6f7992 100644
--- a/python/vyos/util.py
+++ b/python/vyos/util.py
@@ -262,7 +262,7 @@ def chmod_755(path):
def makedir(path, user=None, group=None):
- if not os.path.exists(path):
+ if os.path.exists(path):
return
os.mkdir(path)
chown(path, user, group)