Skip to content

Commit d73135a

Browse files
committed
CA-399669: Do not exit with error when IPMI readings aren't available
This error made toolstack restarts fail. Because not all drivers have ipmi available, exit gracefully instead. Signed-off-by: Pau Ruiz Safont <[email protected]>
1 parent 4ea5d43 commit d73135a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocaml/xcp-rrdd/bin/rrdp-dcmi/rrdp_dcmi.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ let _ =
7272
initialise () ;
7373
match discover () with
7474
| [] ->
75-
D.info "IPMI DCMI power reading is unavailable" ;
76-
exit 1
75+
D.warn "IPMI DCMI power readings not available, stopping." ;
76+
exit 0
7777
| _ ->
7878
D.info "IPMI DCMI power reading is available" ;
7979
main_loop ~neg_shift:0.5 ~target:(Reporter.Local 1)

0 commit comments

Comments
 (0)