From 3f414bf2d14733f4416a0775a75b40578f70955f Mon Sep 17 00:00:00 2001 From: Joe White Date: Thu, 29 Aug 2024 15:12:43 +0100 Subject: [PATCH] fix: add uType param to UpdateConf in goca --- src/oca/go/src/goca/vm.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/oca/go/src/goca/vm.go b/src/oca/go/src/goca/vm.go index aeeec04a689..f5d3490f327 100644 --- a/src/oca/go/src/goca/vm.go +++ b/src/oca/go/src/goca/vm.go @@ -438,14 +438,14 @@ func (vc *VMController) UpdateContext(ctx context.Context, tpl string, uType par // UpdateConf updates (appends) a set of supported configuration attributes in // the VM template -func (vc *VMController) UpdateConf(tpl string) error { - return vc.UpdateConfContext(context.Background(), tpl) +func (vc *VMController) UpdateConf(tpl string, uType parameters.UpdateType) error { + return vc.UpdateConfContext(context.Background(), tpl, uType) } // UpdateConf updates (appends) a set of supported configuration attributes in // the VM template -func (vc *VMController) UpdateConfContext(ctx context.Context, tpl string) error { - _, err := vc.c.Client.CallContext(ctx, "one.vm.updateconf", vc.ID, tpl) +func (vc *VMController) UpdateConfContext(ctx context.Context, tpl string, uType parameters.UpdateType) error { + _, err := vc.c.Client.CallContext(ctx, "one.vm.updateconf", vc.ID, tpl, uType) return err }