summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/ipa_otptoken_import.py
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2016-01-15 16:25:33 +0100
committerMartin Basti <mbasti@redhat.com>2016-01-18 17:49:54 +0100
commit78c5bf9f8e85b4c6c9b67b4a26acedfd45a2c86f (patch)
tree06768801faee93c947a75090f9d978099c290543 /ipaserver/install/ipa_otptoken_import.py
parente7a4faab81dad6b77373d6f57f597c411a7557f4 (diff)
downloadfreeipa-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 'ipaserver/install/ipa_otptoken_import.py')
-rw-r--r--ipaserver/install/ipa_otptoken_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/ipa_otptoken_import.py b/ipaserver/install/ipa_otptoken_import.py
index 8ea67fce1..64670a6ff 100644
--- a/ipaserver/install/ipa_otptoken_import.py
+++ b/ipaserver/install/ipa_otptoken_import.py
@@ -523,7 +523,7 @@ class OTPTokenImport(admintool.AdminTool):
try:
api.Command.otptoken_add(keypkg.id, no_qrcode=True, **keypkg.options)
except Exception as e:
- self.log.warn("Error adding token: %s", e)
+ self.log.warning("Error adding token: %s", e)
else:
self.log.info("Added token: %s", keypkg.id)
keypkg.remove()