ipaclient_test: Drop extra ca_cert_files list test

ca_cert_files is always a list of strings or None, therefore no
isinstance(options.ca_cert_files, list) test needed.

Fixes: #1425 (Fix ca_cert_files spec according to implementation)
This commit is contained in:
Thomas Woerner
2026-07-22 15:51:27 +02:00
parent 7ba279c09f
commit 817ac954ca

View File

@@ -460,9 +460,10 @@ def main():
# ClientInstall
if options.ca_cert_files is not None:
# ca_cert_files is always a list of strings or None,
# therefore no isinstance(options.ca_cert_files, list) test
# needed.
for value in options.ca_cert_files:
if not isinstance(value, list):
raise ValueError("Expected list, got {0!r}".format(value))
# this is what init() does
value = value[-1]
if not os.path.exists(value):