File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -736,7 +736,12 @@ module Wrapper = functor(Impl: Server_impl) -> struct
736736 Impl.SR. set_name_description context ~dbg ~sr ~new_name_description
737737
738738 let attach context ~dbg ~sr ~device_config =
739- info " SR.attach dbg:%s sr:%s device_config:[%s]" dbg sr (String. concat " ; " (List. map (fun (k , v ) -> k ^ " :" ^ v) device_config));
739+ let censor_key = [" password" ] in
740+ let device_config_str = String. concat " ; " (List. map (fun (k , v ) ->
741+ let v' = (if List. exists (Xstringext.String. has_substr k) censor_key then " (omitted)" else v) in
742+ (k ^ " :" ^ v')) device_config)
743+ in
744+ info " SR.attach dbg:%s sr:%s device_config:[%s]" dbg sr device_config_str;
740745 with_sr sr
741746 (fun () ->
742747 match Host. find sr ! Host. host with
You can’t perform that action at this time.
0 commit comments