mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Kill the print with fire
This commit is contained in:
parent
54afd2a934
commit
2828fc06be
@ -163,7 +163,6 @@ def deluser(name, username):
|
|||||||
grp_info = __salt__['group.info'](name)
|
grp_info = __salt__['group.info'](name)
|
||||||
try:
|
try:
|
||||||
if username in grp_info['members']:
|
if username in grp_info['members']:
|
||||||
print username
|
|
||||||
retcode = __salt__['cmd.retcode'](
|
retcode = __salt__['cmd.retcode'](
|
||||||
'gpasswd --del {0} {1}'.format(username, name),
|
'gpasswd --del {0} {1}'.format(username, name),
|
||||||
python_shell=False)
|
python_shell=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user