Skip to content

Commit ec8e6e4

Browse files
author
David Scott
committed
CP-13874: plumb through SR name_label and name_description
Signed-off-by: David Scott <[email protected]>
1 parent 8a4d2b4 commit ec8e6e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,9 @@ let process root_dir name x =
489489
fork_exec_rpc root_dir (script root_dir name `Volume "SR.probe") args Storage.Volume.Types.SR.Probe.Out.t_of_rpc
490490
>>= fun response ->
491491
let srs = List.map ~f:(fun sr_stat -> sr_stat.Storage.Volume.Types.sr, {
492-
Storage_interface.total_space = sr_stat.Storage.Volume.Types.total_space;
492+
Storage_interface.name_label = sr_stat.Storage.Volume.Types.name;
493+
name_description = sr_stat.Storage.Volume.Types.description;
494+
total_space = sr_stat.Storage.Volume.Types.total_space;
493495
free_space = sr_stat.Storage.Volume.Types.free_space;
494496
clustered = sr_stat.Storage.Volume.Types.clustered;
495497
health = match sr_stat.Storage.Volume.Types.health with
@@ -788,6 +790,8 @@ let process root_dir name x =
788790
fork_exec_rpc root_dir (script root_dir name `Volume "SR.stat") args Storage.Volume.Types.SR.Stat.Out.t_of_rpc
789791
>>= fun response ->
790792
let response = {
793+
name_label = response.Storage.Volume.Types.name;
794+
name_description = response.Storage.Volume.Types.description;
791795
total_space = response.Storage.Volume.Types.total_space;
792796
free_space = response.Storage.Volume.Types.free_space;
793797
clustered = response.Storage.Volume.Types.clustered;

0 commit comments

Comments
 (0)