From 2f53b91697811c2228ae7a2fcf083e81d92125c6 Mon Sep 17 00:00:00 2001 From: Brendan Beveridge Date: Tue, 8 May 2012 09:49:37 +1000 Subject: [PATCH] remove now useless append check in user_mod --- user | 4 ---- 1 file changed, 4 deletions(-) diff --git a/user b/user index efb4b36fde9..0e787783774 100755 --- a/user +++ b/user @@ -173,10 +173,6 @@ def user_mod(user, **kwargs): if kwargs[key] is not None and info[1] != kwargs[key]: cmd.append('-p') cmd.append(kwargs[key]) - elif key == 'append': - if kwargs[key] is not None and kwargs[key] == 'yes': - if 'groups' in kwargs and kwargs['groups'] is not None: - cmd.append('-a') # skip if no changes to be made if len(cmd) == 1: return False