diff --git a/roles/ipaserver/library/ipaserver_setup_ca.py b/roles/ipaserver/library/ipaserver_setup_ca.py
index 6a5cfcce45d2f9772603c6aaae9b9c153dbd1fe8..53a3633a55a1a41b495cc120a387e2ec79417300 100644
--- a/roles/ipaserver/library/ipaserver_setup_ca.py
+++ b/roles/ipaserver/library/ipaserver_setup_ca.py
@@ -265,7 +265,7 @@ def main():
     # additional
     options.domainlevel = ansible_module.params.get('domainlevel')
     options._http_ca_cert = ansible_module.params.get('_http_ca_cert')
-    if options._http_ca_cert is not None:
+    if options._http_ca_cert:
         options._http_ca_cert = decode_certificate(options._http_ca_cert)
 
     # init #################################################################