s4-fsmo: samba-tool fsmo transfer now gets full error code
authorAndrew Tridgell <tridge@samba.org>
Mon, 28 Mar 2011 05:45:22 +0000 (16:45 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 28 Mar 2011 22:00:22 +0000 (00:00 +0200)
We now wait for the transfer to succeed or fail

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/scripting/python/samba/netcmd/fsmo.py

index ff33491194cf4e40a321c2ebafd2b28eaed7f196..2aa1739b56693cfb9568cb1de3015c47aa9bb127 100644 (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,