From: Daniele Dario Date: Thu, 19 Apr 2012 10:13:41 +0000 (+0200) Subject: Added number of FSMO roles owned by the server we are trying to demote. X-Git-Tag: samba-4.0.0alpha20~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1f00e5ba0b52bafac8532fba19112ebbed06738;p=thirdparty%2Fsamba.git Added number of FSMO roles owned by the server we are trying to demote. --- diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py index 2d8bfe3dd88..2ce0535591f 100644 --- a/source4/scripting/python/samba/netcmd/domain.py +++ b/source4/scripting/python/samba/netcmd/domain.py @@ -249,7 +249,7 @@ class cmd_domain_demote(Command): controls=["search_options:1:2"]) if len(res) != 0: - raise CommandError("Current DC is still the owner of %d role(s), use the role command to transfer roles to another DC") + raise CommandError("Current DC is still the owner of %d role(s), use the role command to transfer roles to another DC" % len(res)) print "Using %s as partner server for the demotion" % server (drsuapiBind, drsuapi_handle, supportedExtensions) = drsuapi_connect(server, lp, creds)