summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/plugins/upload_cacrt.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2015-09-01 13:22:04 +0200
committerJan Cholasta <jcholast@redhat.com>2015-09-17 11:08:43 +0200
commit33aba6f35e43b5febf1751de4cef2863749f93e7 (patch)
treef0aef38d28375a2486047b6e72f1cb13c47d7806 /ipaserver/install/plugins/upload_cacrt.py
parentba5201979dfddcb4ca6bb1b68e786cb964e50bb6 (diff)
downloadfreeipa-33aba6f35e43b5febf1751de4cef2863749f93e7.tar.gz
freeipa-33aba6f35e43b5febf1751de4cef2863749f93e7.tar.xz
freeipa-33aba6f35e43b5febf1751de4cef2863749f93e7.zip
Use byte literals where appropriate
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipaserver/install/plugins/upload_cacrt.py')
-rw-r--r--ipaserver/install/plugins/upload_cacrt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/plugins/upload_cacrt.py b/ipaserver/install/plugins/upload_cacrt.py
index ddca4baba..dcb7fe747 100644
--- a/ipaserver/install/plugins/upload_cacrt.py
+++ b/ipaserver/install/plugins/upload_cacrt.py
@@ -87,7 +87,7 @@ class update_upload_cacrt(Updater):
entry.single_value['cACertificate;binary'] = ca_cert
ldap.add_entry(entry)
else:
- if '' in entry['cACertificate;binary']:
+ if b'' in entry['cACertificate;binary']:
entry.single_value['cACertificate;binary'] = ca_cert
ldap.update_entry(entry)