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 2016-09-09 15:04:35 +02:00 committed by Martin Babinsky
parent 866e59bdce
commit cd75eb3b25

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: