git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2697415
)
samba-tool group addmembers: avoid python traceback on member add failure
author
Björn Baumbach
<bb@sernet.de>
Tue, 21 Jan 2020 12:56:29 +0000
(13:56 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 21 Jan 2020 14:38:47 +0000
(14:38 +0000)
Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Ralph Boehme <slow@samba.org>
python/samba/netcmd/group.py
patch
|
blob
|
history
diff --git
a/python/samba/netcmd/group.py
b/python/samba/netcmd/group.py
index 1467ddd0f234367cce5f7bf1d14176d06858a287..6e5ed1def28d9ad541a3bb1f2c50cfae9e63dab1 100644
(file)
--- a/
python/samba/netcmd/group.py
+++ b/
python/samba/netcmd/group.py
@@
-289,8
+289,8
@@
Example2 shows how to add a single user account, User2, to the supergroup AD gro
member_base_dn=member_base_dn)
except Exception as e:
# FIXME: catch more specific exception
- raise CommandError('Failed to add members %r to group "%s"' % (
- groupmembers, groupname
), e
)
+ raise CommandError('Failed to add members %r to group "%s"
- %s
' % (
+ groupmembers, groupname
, e)
)
self.outf.write("Added members to group %s\n" % groupname)