Fix regression introduced in ipa-certupdate

The fix for 6288 was overwritten by commit 08b7683130.

https://fedorahosted.org/freeipa/ticket/6288

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
Florence Blanc-Renaud authored and Martin Babinsky committed 2016-09-09 16:21:09 +02:00
1 parent 866e59bdce
commit cd75eb3b25
1 file changed
+4 -1
+4 -1
View File
@@ -83,7 +83,10 @@ class CertUpdate(admintool.AdminTool):
certs = certstore.get_ca_certs(ldap, api.env.basedn,
api.env.realm, ca_enabled)
lwcas = api.Command.ca_find()['result']
if ca_enabled:
lwcas = api.Command.ca_find()['result']
else:
lwcas = []
api.Backend.rpcclient.disconnect()
finally: