Unexpected behaviour when updating variables in Schematics using the golang SDK

24 views Asked by At

I want to update variables in schematics workspaces programmatically using the golang SDK, so what I am doing is a call to

_, detailedResponse , err := schematicsService.ReplaceWorkspace(updateWorkspaceOptions)

This is woking so far, in Schematics I can see the variables are beeing updated. The thing that is bothering me, "plan" says there is nothing to be changed.

If I go and use the Schematics GUI, then plan will register the changes.

What am I missing? Does anyone have an example of this call? Unfortunately in the API-Docs there is no example.

1

There are 1 answers

0
Kalin E. On

Used _, detailedResponse , err := schematicsService.ReplaceWorkspaceInputs(updateWorkspaceOptions) instead and it worked fine.