aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonan Amicel <ronan.amicel@gmail.com>2012-10-25 23:08:48 +0200
committerRonan Amicel <ronan.amicel@gmail.com>2012-10-25 23:12:45 +0200
commitab162ae13612be5fd060c4ce4a1154beb358b218 (patch)
tree223baa6c10cda14d5fcfc3c0b1a4df476e5b984c
parentMerge pull request #41 from liZe/patch-1 (diff)
downloadfabtools-ab162ae13612be5fd060c4ce4a1154beb358b218.tar.xz
No need to sudo to run getent [#40]
-rw-r--r--fabtools/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fabtools/user.py b/fabtools/user.py
index de40148..3cbdd00 100644
--- a/fabtools/user.py
+++ b/fabtools/user.py
@@ -12,7 +12,7 @@ def exists(name):
Check if a user exists.
"""
with settings(hide('running', 'stdout', 'warnings'), warn_only=True):
- return sudo('getent passwd %(name)s' % locals()).succeeded
+ return run('getent passwd %(name)s' % locals()).succeeded
def create(name, home=None, shell=None, uid=None, gid=None, groups=None):