mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix error in ca_cert_files validator
ClientInstall expects a single ca_cert_file as a string but the framework gives it a list. https://fedorahosted.org/freeipa/ticket/6694 Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
9ac068ad04
commit
0fffeabe02
@@ -3555,6 +3555,10 @@ class ClientInstall(ClientInstallInterface,
|
||||
|
||||
@ca_cert_files.validator
|
||||
def ca_cert_files(self, value):
|
||||
if not isinstance(value, list):
|
||||
raise ValueError("Expected list, got {!r}".format(value))
|
||||
# this is what init() does
|
||||
value = value[-1]
|
||||
if not os.path.exists(value):
|
||||
raise ValueError("'%s' does not exist" % value)
|
||||
if not os.path.isfile(value):
|
||||
|
||||
Reference in New Issue
Block a user