diff --git a/go-client/windmill.go b/go-client/windmill.go index 159120a085..8f8f3d2aa8 100644 --- a/go-client/windmill.go +++ b/go-client/windmill.go @@ -117,7 +117,9 @@ func SetState(state interface{}) error { if err != nil { return err } - res, err := client.Client.CreateResourceWithResponse(context.Background(), client.Workspace, api.CreateResource{Value: &state}) + res, err := client.Client.CreateResourceWithResponse(context.Background(), client.Workspace, &api.CreateResourceParams{ + UpdateIfExists: newBool(true), + }, api.CreateResource{Value: &state}) if err != nil { return err } diff --git a/python-client/.gitignore b/python-client/.gitignore index 01dbc998ac..0a6e1f82df 100644 --- a/python-client/.gitignore +++ b/python-client/.gitignore @@ -1,3 +1 @@ -openapi-deref.yaml -dist/ windmill-api/ diff --git a/python-client/windmill-api/.gitignore b/python-client/windmill-api/.gitignore deleted file mode 100644 index 79a2c3d73c..0000000000 --- a/python-client/windmill-api/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -__pycache__/ -build/ -dist/ -*.egg-info/ -.pytest_cache/ - -# pyenv -.python-version - -# Environments -.env -.venv - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# JetBrains -.idea/ - -/coverage.xml -/.coverage