[configuration] Force type when doing environment variable substitution #4281
Labels
spec:miscellaneous
For issues that don't match any other spec label
triage:deciding:needs-info
Not enough information. Left open to provide the author with time to add more details
What are you trying to achieve?
When substituting env variables like "00001" (as a string) (e.g. into an attribute), the type of the produced value is automatically Int. I want to be able to force it to type Str at substitution. Note, currently with
attribute: convert
it is done after the value is already substituted as an Int, so in this case it will be doing Int(1) => Str(1), which is still not the same as Str(00001).** Context/Example **
With config
When the env var id = "00001", the value of the attribute "some_id" will be Int(1).
If we do a
afterwards, the value is Str(1) which is still different from "00001" / Str(00001).
The text was updated successfully, but these errors were encountered: