Skip to content

Commit

Permalink
fix: add uType param to UpdateConf in goca
Browse files Browse the repository at this point in the history
  • Loading branch information
joewhite94 committed Aug 29, 2024
1 parent 10a800b commit 3f414bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/oca/go/src/goca/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3f414bf

Please sign in to comment.