summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-06-17 13:35:52 +1000
committerAndrew Tridgell <tridge@samba.org>2011-06-17 15:24:23 +1000
commit705ed1c4921a1456ebcf80ac352567679ab7dfa9 (patch)
tree6cb36126c0d8786f4a559c6d41e893bb0d44cf67 /source4
parent0c3075cb57134f6171c332158c3052e05dace595 (diff)
downloadsamba-705ed1c4921a1456ebcf80ac352567679ab7dfa9.tar.gz
samba-705ed1c4921a1456ebcf80ac352567679ab7dfa9.tar.bz2
samba-705ed1c4921a1456ebcf80ac352567679ab7dfa9.zip
samba-tool: show success message on group operations
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/netcmd/group.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/netcmd/group.py b/source4/scripting/python/samba/netcmd/group.py
index 620a7be866..95db21adfc 100644
--- a/source4/scripting/python/samba/netcmd/group.py
+++ b/source4/scripting/python/samba/netcmd/group.py
@@ -85,6 +85,7 @@ class cmd_group_add(Command):
description=description, mailaddress=mail_address, notes=notes)
except Exception, e:
raise CommandError('Failed to create group "%s"' % groupname, e)
+ print("Added group %s" % groupname)
class cmd_group_delete(Command):
@@ -115,6 +116,7 @@ class cmd_group_delete(Command):
samdb.deletegroup(groupname)
except Exception, e:
raise CommandError('Failed to remove group "%s"' % groupname, e)
+ print("Deleted group %s" % groupname)
class cmd_group_add_members(Command):
@@ -146,6 +148,7 @@ class cmd_group_add_members(Command):
samdb.add_remove_group_members(groupname, listofmembers, add_members_operation=True)
except Exception, e:
raise CommandError('Failed to add members "%s" to group "%s"' % (listofmembers, groupname), e)
+ print("Added members to group %s" % groupname)
class cmd_group_remove_members(Command):
@@ -177,6 +180,7 @@ class cmd_group_remove_members(Command):
samdb.add_remove_group_members(groupname, listofmembers, add_members_operation=False)
except Exception, e:
raise CommandError('Failed to remove members "%s" from group "%s"' % (listofmembers, groupname), e)
+ print("Removed members from group %s" % groupname)
class cmd_group(SuperCommand):