diff options
author | Tomas Babej <tbabej@redhat.com> | 2016-01-15 16:25:33 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-01-18 17:49:54 +0100 |
commit | 78c5bf9f8e85b4c6c9b67b4a26acedfd45a2c86f (patch) | |
tree | 06768801faee93c947a75090f9d978099c290543 /ipalib/plugins/permission.py | |
parent | e7a4faab81dad6b77373d6f57f597c411a7557f4 (diff) | |
download | freeipa-78c5bf9f8e85b4c6c9b67b4a26acedfd45a2c86f.tar.gz freeipa-78c5bf9f8e85b4c6c9b67b4a26acedfd45a2c86f.tar.xz freeipa-78c5bf9f8e85b4c6c9b67b4a26acedfd45a2c86f.zip |
logger: Use warning instead of warn
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipalib/plugins/permission.py')
-rw-r--r-- | ipalib/plugins/permission.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/permission.py b/ipalib/plugins/permission.py index cbc48f5e8..2312008fa 100644 --- a/ipalib/plugins/permission.py +++ b/ipalib/plugins/permission.py @@ -1209,7 +1209,7 @@ class permission_mod(baseldap.LDAPUpdate): # Try to roll back the old ACI entry, old_aci_string = old_aci_info if old_aci_string: - self.log.warn('Reverting ACI on %s to %s' % (entry.dn, + self.log.warning('Reverting ACI on %s to %s' % (entry.dn, old_aci_string)) entry['aci'].append(old_aci_string) self.Backend.ldap2.update_entry(entry) @@ -1227,7 +1227,7 @@ class permission_mod(baseldap.LDAPUpdate): entry.pop('attributelevelrights', None) self.log.error('Error updating ACI: %s' % traceback.format_exc()) - self.log.warn('Reverting entry') + self.log.warning('Reverting entry') old_entry.reset_modlist(entry) ldap.update_entry(old_entry) self._revert_aci() |