1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

s4-fsmo: say which role is being transferred

this is particularly useful for "samba-tool fsmo transfer --role=all"
This commit is contained in:
Andrew Tridgell
2011-03-28 16:48:46 +11:00
committed by Andrew Bartlett
parent 3600f2e250
commit ef44794097

View File

@ -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,