From ef44794097ea7e3eaf4e93d6dca0a9706bd2ae97 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 28 Mar 2011 16:48:46 +1100 Subject: s4-fsmo: say which role is being transferred this is particularly useful for "samba-tool fsmo transfer --role=all" --- source4/scripting/python/samba/netcmd/fsmo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/scripting') 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, -- cgit