This repository was archived by the owner on Jul 18, 2025. It is now read-only.
Commit 3839205
committed
Allows the use of float values in environment variables
When converting a docker-compose file with float values as environment
variables, libcompose errors out.
Example:
```
version: "2"
services:
redis:
image: redis:3.0
environment:
foo: 0.3
```
Errors out with: `Cannot unmarshal '0.3' of type float64 into a string value`
This commit fixes the issue by detecting if a float value has been
passed and successfully converting it to a string variable.
Signed-off-by: Charlie Drage <charlie@charliedrage.com>1 parent 5cba167 commit 3839205
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
| |||
0 commit comments