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:
committed by
Andrew Bartlett
parent
b32f155bae
commit
3600f2e250
@ -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,
|
||||
|
Reference in New Issue
Block a user