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

s4-fsmo: samba-tool fsmo transfer now gets full error code

We now wait for the transfer to succeed or fail

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andrew Tridgell
2011-03-28 16:45:22 +11:00
committed by Andrew Bartlett
parent b32f155bae
commit 3600f2e250

View File

@ -92,7 +92,7 @@ all=all of the above"""),
samdb.modify(m)
except LdbError, (num, msg):
raise CommandError("Failed to initiate transfer: %s" % msg)
print("Scheduled FSMO transfer - use 'fsmo show' and 'drs showrepl' for result")
print("FSMO transfer successful")
def seize_role(self, role, samdb, force):
@ -134,7 +134,7 @@ all=all of the above"""),
samdb.modify(m)
except LdbError, (num, msg):
raise CommandError("Failed to initiate role seize: %s" % msg)
print("Scheduled FSMO transfer - use 'fsmo show' and 'drs showrepl' for result")
print("FSMO transfer successful")
def run(self, subcommand, force=None, url=None, role=None,