mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
remove now useless append check in user_mod
This commit is contained in:
parent
2635195185
commit
5059588b17
1 changed files with 0 additions and 4 deletions
|
@ -173,10 +173,6 @@ def user_mod(user, **kwargs):
|
||||||
if kwargs[key] is not None and info[1] != kwargs[key]:
|
if kwargs[key] is not None and info[1] != kwargs[key]:
|
||||||
cmd.append('-p')
|
cmd.append('-p')
|
||||||
cmd.append(kwargs[key])
|
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
|
# skip if no changes to be made
|
||||||
if len(cmd) == 1:
|
if len(cmd) == 1:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue