summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/samba_ops.py
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2016-11-16 17:36:15 +0530
committerJonathan Holloway <jholloway@redhat.com>2016-12-12 08:01:33 -0800
commit3070312c13e02cace3041d3429b0c31fc10b73ee (patch)
tree15b202c91c00fd93ab5559bced17b2e7fa27127f /glustolibs-gluster/glustolibs/gluster/samba_ops.py
parentb7aea27f6662fd5b0344c6dbffcf2b9a86c1f8cc (diff)
Clean up pyflakes and pep8 errors
Change-Id: Ibdd092118d3bb912716c46fd278ef3c680a6e742 Signed-off-by: Nigel Babu <nigelb@redhat.com>
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)