Skip to content

Commit 9f44ef3

Browse files
committed
CA-154780: Importing system template should return the uuid of existing template
Signed-off-by: Sharad Yadav <[email protected]>
1 parent b1bfa34 commit 9f44ef3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ocaml/xapi/import.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ module VM : HandlerTools = struct
345345
match precheck_result with
346346
| Skip -> ()
347347
| Fail e -> raise e
348-
| Default_template template -> state.table <- (x.cls, x.id, Ref.string_of template) :: state.table
348+
| Default_template template ->
349+
state.table <- (x.cls, x.id, Ref.string_of template) :: state.table;
350+
state.created_vms <- (x.cls, x.id, Ref.string_of template) :: state.created_vms
349351
| Clean_import _ | Replace _ ->
350352
let dummy_vm = Ref.make () in
351353
state.table <- (x.cls, x.id, Ref.string_of dummy_vm) :: state.table

0 commit comments

Comments
 (0)