diff options
author | Andrew Bartlett <abartlet@samba.org> | 2015-08-14 16:43:41 +1200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2015-08-17 18:09:40 +0200 |
commit | 977be7b8e242edeccbecb54e9873ffd6b8151e63 (patch) | |
tree | 5cc9482c30a571c4ae1af96d0729df0c6fa4f872 | |
parent | 20d00d3b1033bb595c9f4708607dfef2a61ca99c (diff) | |
download | samba-977be7b8e242edeccbecb54e9873ffd6b8151e63.tar.gz |
python:samba/upgrade.py Fix format string syntax in error condition
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
(cherry picked from commit a431828460a8b069589662ad87e47c61c020eb9c)
-rw-r--r-- | python/samba/upgrade.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/upgrade.py b/python/samba/upgrade.py index 94b77323124..215ccd39164 100644 --- a/python/samba/upgrade.py +++ b/python/samba/upgrade.py @@ -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 |