Skip to content

Commit 571f36a

Browse files
committed
Update cluster-stack-version lifecycle
This was not set properly when it was first introduced in xapi-24.15.0 Signed-off-by: Vincent Liu <[email protected]>
1 parent d369991 commit 571f36a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ocaml/idl/datamodel_cluster.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ let t =
204204
(Some (VString Constants.default_smapiv3_cluster_stack))
205205
"Simply the string 'corosync'. No other cluster stacks are \
206206
currently supported"
207-
; field ~qualifier:StaticRO ~lifecycle ~ty:Int "cluster_stack_version"
207+
; field ~qualifier:StaticRO ~lifecycle:[] ~ty:Int "cluster_stack_version"
208208
~default_value:(Some (VInt 2L))
209209
"Version of cluster stack, not writable via the API. Defaulting to \
210210
2 for backwards compatibility when upgrading from a cluster \

ocaml/idl/datamodel_lifecycle.ml

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ let prototyped_of_field = function
8383
Some "24.3.0"
8484
| "Cluster", "is_quorate" ->
8585
Some "24.3.0"
86+
| "Cluster", "cluster_stack_version" ->
87+
Some "24.15.0"
8688
| "VTPM", "contents" ->
8789
Some "22.26.0"
8890
| "VTPM", "is_protected" ->

0 commit comments

Comments
 (0)