We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d95662a commit ac02a4aCopy full SHA for ac02a4a
ocaml/xapi/helpers.ml
@@ -131,7 +131,7 @@ let call_script ?(log_output = Always) ?env ?stdin ?timeout script args =
131
(** Construct a descriptive network name (used as name_label) for a give network interface. *)
132
let choose_network_name_for_pif device pos_opt =
133
let pos_str =
134
- match pos_opt with None -> "" | Some pos -> Printf.sprintf "[%d]" pos
+ Option.fold ~none:"" ~some:(Printf.sprintf " (slot %d)") pos_opt
135
in
136
Printf.sprintf "Pool-wide network associated with %s%s" device pos_str
137
0 commit comments