fix: support setting undefined states

This commit is contained in:
Ruben Fiszel
2023-01-02 04:22:56 +01:00
parent 385e191ef2
commit 74ef6e46c2
11 changed files with 42 additions and 26 deletions
+4 -1
View File
@@ -203,6 +203,9 @@ def set_resource(
Set the resource at a given path as a string, creating it if it does not exist
"""
from windmill_api.models.create_resource_json_body import CreateResourceJsonBody
from windmill_api.models.update_resource_value_json_body import (
UpdateResourceValueJsonBody,
)
from windmill_api.api.resource import (
exists_resource,
update_resource_value,
@@ -227,7 +230,7 @@ def set_resource(
workspace=get_workspace(),
client=client,
path=path,
json_body=value,
json_body=UpdateResourceValueJsonBody(value=value),
)