Skip to content

Commit 6609e66

Browse files
committed
CA-299371: mark NVRAM as hidden by default
This hides it from `xe vm-param-list` too, not just `xe vm-list`. One can still query it by doing `xe vm-param-get uuid=... params=NVRAM`. Signed-off-by: Edwin Török <[email protected]>
1 parent bbf8396 commit 6609e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/xapi/records.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ let vm_record rpc session_id vm =
893893
make_field ~name:"HVM-shadow-multiplier"
894894
~get:(fun () -> string_of_float (x ()).API.vM_HVM_shadow_multiplier)
895895
~set:(fun x -> Client.VM.set_HVM_shadow_multiplier rpc session_id vm (float_of_string x)) ();
896-
make_field ~name:"NVRAM" ~expensive:true
896+
make_field ~name:"NVRAM" ~hidden:true
897897
~get:(fun () -> Record_util.s2sm_to_string "; " (x ()).API.vM_NVRAM)
898898
~add_to_map:(fun k v -> Client.VM.add_to_NVRAM rpc session_id vm k v)
899899
~remove_from_map:(fun k -> Client.VM.remove_from_NVRAM rpc session_id vm k)

0 commit comments

Comments
 (0)