Skip to content

Commit d663dc4

Browse files
committed
CA-38136:replace any occurence of "snapshot_of" and "snapshot_time" by "snapshot-of" and "snapshot-by" in the CLI fields.
(this appears in the VM and VDI records) Signed-off-by: Thomas Gazagnaire <[email protected]>
1 parent 6153e05 commit d663dc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ocaml/client_records/records.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,11 +579,11 @@ let vm_record rpc session_id vm =
579579
~set:(fun x -> Client.VM.set_is_a_template rpc session_id vm (safe_bool_of_string "is-a-template" x)) ();
580580
make_field ~name:"is-a-snapshot"
581581
~get:(fun () -> string_of_bool (x ()).API.vM_is_a_snapshot) ();
582-
make_field ~name:"snapshot_of"
582+
make_field ~name:"snapshot-of"
583583
~get:(fun () -> get_uuid_from_ref (x ()).API.vM_snapshot_of) ();
584584
make_field ~name:"snapshots"
585585
~get:(fun () -> String.concat "; " (List.map get_uuid_from_ref (x ()).API.vM_snapshots)) ();
586-
make_field ~name:"snapshot_time"
586+
make_field ~name:"snapshot-time"
587587
~get:(fun () -> Date.to_string (x ()).API.vM_snapshot_time) ();
588588
make_field ~name:"transportable-snapshot-id" ~hidden:true
589589
~get:(fun () -> (x()).API.vM_transportable_snapshot_id) ();
@@ -942,9 +942,9 @@ let vdi_record rpc session_id vdi =
942942
make_field ~name:"name-description" ~get:(fun () -> (x ()).API.vDI_name_description)
943943
~set:(fun desc -> Client.VDI.set_name_description rpc session_id vdi desc) ();
944944
make_field ~name:"is-a-snapshot" ~get:(fun () -> string_of_bool (x ()).API.vDI_is_a_snapshot) ();
945-
make_field ~name:"snapshot_of" ~get:(fun () -> get_uuid_from_ref (x ()).API.vDI_snapshot_of) ();
945+
make_field ~name:"snapshot-of" ~get:(fun () -> get_uuid_from_ref (x ()).API.vDI_snapshot_of) ();
946946
make_field ~name:"snapshots" ~get:(fun () -> String.concat "; " (List.map get_uuid_from_ref (x ()).API.vDI_snapshots)) ();
947-
make_field ~name:"snapshot_time" ~get:(fun () -> Date.to_string (x ()).API.vDI_snapshot_time) ();
947+
make_field ~name:"snapshot-time" ~get:(fun () -> Date.to_string (x ()).API.vDI_snapshot_time) ();
948948
make_field ~name:"allowed-operations"
949949
~get:(fun () -> String.concat "; " (List.map Record_util.vdi_operation_to_string (x ()).API.vDI_allowed_operations))
950950
~get_set:(fun () -> List.map Record_util.vdi_operation_to_string (x ()).API.vDI_allowed_operations) ();

0 commit comments

Comments
 (0)