Skip to content

Commit 15df700

Browse files
committed
CA-404460: expose ssl_verify_error during updates syncing
Signed-off-by: Gang Ji <[email protected]>
1 parent 95d888e commit 15df700

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ocaml/xapi/repository.ml

+2
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ let sync ~__context ~self ~token ~token_id ~username ~password =
306306
with
307307
| Api_errors.Server_error (_, _) as e ->
308308
raise e
309+
| Stunnel.Stunnel_verify_error reason ->
310+
raise (Api_errors.Server_error (Api_errors.ssl_verify_error, [reason]))
309311
| e ->
310312
error "Failed to sync with remote YUM repository: %s"
311313
(ExnHelper.string_of_exn e) ;

0 commit comments

Comments
 (0)