mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-25 00:44:42 +00:00
Merge pull request #1430 from t-woerner/ipaclient_test_ca_cert_files_test_fix
ipaclient_test: Drop extra ca_cert_files list test
This commit is contained in:
@@ -460,9 +460,10 @@ def main():
|
|||||||
# ClientInstall
|
# ClientInstall
|
||||||
|
|
||||||
if options.ca_cert_files is not None:
|
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:
|
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
|
# this is what init() does
|
||||||
value = value[-1]
|
value = value[-1]
|
||||||
if not os.path.exists(value):
|
if not os.path.exists(value):
|
||||||
|
|||||||
Reference in New Issue
Block a user