summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/samba_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/samba_ops.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/samba_ops.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/samba_ops.py b/glustolibs-gluster/glustolibs/gluster/samba_ops.py
index e4f5b0154..ec158b04b 100644
--- a/glustolibs-gluster/glustolibs/gluster/samba_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/samba_ops.py
@@ -133,9 +133,6 @@ def create_smb_users(servers, smb_users_info, start_uid=50000):
for smb_user in smb_users_info.keys():
if smb_user == 'root':
continue
- user_add_command = ("getent passwd %d | grep %s &> /dev/null || "
- "useradd -u %d %s" % (uid, smb_user,
- uid, smb_user))
for server in servers:
# Check if user already exist with same uid
cmd = ("getent passwd %d" % uid)