summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Dario <d.dario76@gmail.com>2012-04-19 12:13:41 +0200
committerAndrew Bartlett <abartlet@samba.org>2012-04-19 19:15:05 +0200
commitf1f00e5ba0b52bafac8532fba19112ebbed06738 (patch)
treefa7179fd491bdd456763dccb940a43336d03862f
parent0615cf5f85ba2a4946a583c060af78fbe3e8cb4c (diff)
downloadsamba-f1f00e5ba0b52bafac8532fba19112ebbed06738.tar.gz
samba-f1f00e5ba0b52bafac8532fba19112ebbed06738.tar.bz2
samba-f1f00e5ba0b52bafac8532fba19112ebbed06738.zip
Added number of FSMO roles owned by the server we are trying to demote.
-rw-r--r--source4/scripting/python/samba/netcmd/domain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py
index 2d8bfe3dd8..2ce0535591 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)