Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch SSLError too when adding a provider
Expands ManageIQ#314. KubeException already covers the common "certificate verify failed" SSL errors but not rarer ones like "does not match the server certificate". This might be resolved in Kubeclient or RestClient one day (ManageIQ/kubeclient#240) but it's blocked on backward compatibility concerns so let's catch it here for now. get_hostname_from_routes is best-effort, should never crash UI. Any SSL error will probably fail both get_hostname_from_routes and the main validation code; the error from validation will then be displayed in a red flash. https://bugzilla.redhat.com/show_bug.cgi?id=1436221
- Loading branch information