python:samba/upgrade.py Fix format string syntax in error condition
authorAndrew Bartlett <abartlet@samba.org>
Fri, 14 Aug 2015 04:43:41 +0000 (16:43 +1200)
committerMartin Schwenke <martins@samba.org>
Fri, 14 Aug 2015 08:52:39 +0000 (10:52 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11436
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Aug 14 10:52:39 CEST 2015 on sn-devel-104

python/samba/upgrade.py

index 94b77323124ffdd90362c7e028f15257294f2437..215ccd391643026d6af4f0ee770a6e6b68a79bfc 100644 (file)
@@ -407,7 +407,7 @@ def get_posix_attr_from_ldap_backend(logger, ldb_object, base_dn, user, attr):
                         expression=("(&(objectClass=posixAccount)(uid=%s))"
                         % (user)), attrs=[attr])
     except ldb.LdbError, e:
-        raise ProvisioningError("Failed to retrieve attribute %s for user %s, the error is: %s", attr, user, e)
+        raise ProvisioningError("Failed to retrieve attribute %s for user %s, the error is: %s" % (attr, user, e))
     else:
         if msg.count <= 1:
             # This will raise KeyError (which is what we want) if there isn't a entry for this user