summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/netcmd/fsmo.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-03-28 16:48:46 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-03-29 00:00:23 +0200
commitef44794097ea7e3eaf4e93d6dca0a9706bd2ae97 (patch)
tree9312afcd8a755b019d486251236ef99f7ea84edf /source4/scripting/python/samba/netcmd/fsmo.py
parent3600f2e250b7e7605155402a4390066ea7b08fdd (diff)
downloadsamba-ef44794097ea7e3eaf4e93d6dca0a9706bd2ae97.tar.gz
samba-ef44794097ea7e3eaf4e93d6dca0a9706bd2ae97.tar.bz2
samba-ef44794097ea7e3eaf4e93d6dca0a9706bd2ae97.zip
s4-fsmo: say which role is being transferred
this is particularly useful for "samba-tool fsmo transfer --role=all"
Diffstat (limited to 'source4/scripting/python/samba/netcmd/fsmo.py')
-rw-r--r--source4/scripting/python/samba/netcmd/fsmo.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/netcmd/fsmo.py b/source4/scripting/python/samba/netcmd/fsmo.py
index 2aa1739b56..2b2faa7fdf 100644
--- a/source4/scripting/python/samba/netcmd/fsmo.py
+++ b/source4/scripting/python/samba/netcmd/fsmo.py
@@ -91,8 +91,8 @@ all=all of the above"""),
try:
samdb.modify(m)
except LdbError, (num, msg):
- raise CommandError("Failed to initiate transfer: %s" % msg)
- print("FSMO transfer successful")
+ raise CommandError("Failed to initiate transfer of '%s' role: %s" % (role, msg))
+ print("FSMO transfer of '%s' role successful" % role)
def seize_role(self, role, samdb, force):
@@ -133,8 +133,8 @@ all=all of the above"""),
try:
samdb.modify(m)
except LdbError, (num, msg):
- raise CommandError("Failed to initiate role seize: %s" % msg)
- print("FSMO transfer successful")
+ raise CommandError("Failed to initiate role seize of '%s' role: %s" % (role, msg))
+ print("FSMO transfer of '%s' role successful" % role)
def run(self, subcommand, force=None, url=None, role=None,