You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @EugenKon! Go's deserialization of JSON to a string can't differentiate between an empty string and unset, so when the template block is parsed we always end up with an empty string for that field. We need to validate that one of source vs data is set, so that's why you're getting that error. There are ways we could have designed the API around this but changing it now would break backwards compatibility.
You can workaround this by having the template data contain something that evaluates to an empty body. For example, something like:
Nomad version
Issue
I am trying to create the empty file
but have got the error:
The documentation says:
I have specified
data
option and I provided the explicit value""
.Reproduction steps
nomad plan ...
Expected Result
I should be able to create the empty file.
Actual Result
An empty file was not created. The user should not be restricted from a creation of empty files.
The text was updated successfully, but these errors were encountered: