s4-s3-upgrade fix format string for secrets.tdb exception
authorAndrew Bartlett <abartlet@samba.org>
Tue, 18 Oct 2011 22:31:40 +0000 (09:31 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 19 Oct 2011 12:13:09 +0000 (14:13 +0200)
source4/scripting/python/samba/upgrade.py

index f9f7be1d992d80d1fe49f8f8ec344466992957d1..2a2c17ec2c4ecbfb3a9eccff2af259fc4b986ba1 100644 (file)
@@ -473,7 +473,7 @@ def upgrade_from_samba3(samba3, logger, targetdir, session_info=None, useeadb=Fa
     try:
         secrets_db = samba3.get_secrets_db()
     except IOError, e:
-        raise ProvisioningError("Could not open '%s', the Samba3 secrets database: %s.  Perhaps you specified the incorrect smb.conf, --testparm or --libdir option?" % samba3.privatedir_path("secrets.tdb"), str(e))
+        raise ProvisioningError("Could not open '%s', the Samba3 secrets database: %s.  Perhaps you specified the incorrect smb.conf, --testparm or --libdir option?" % (samba3.privatedir_path("secrets.tdb"), str(e)))
 
     if not domainname:
         domainname = secrets_db.domains()[0]