Commit d07ce54
authored
Quote all string values to reduce probability of compose syntax errors (#51)
* Fix a bug where strings with special characters are not quoted
Before:
```
...
services:
<service>:
....
logging:
options:
tag: {{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}
max-file: 3
...
```
and docker-compose up fails
after:
```
...
services:
<service>:
....
logging:
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
max-file: "3"
...
```
and docker-compose up works
* Remove no longer necessary workarounds1 parent 0aa4522 commit d07ce54
1 file changed
+3
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 128 | + | |
143 | 129 | | |
144 | 130 | | |
145 | 131 | | |
| |||
171 | 157 | | |
172 | 158 | | |
173 | 159 | | |
174 | | - | |
| 160 | + | |
175 | 161 | | |
176 | 162 | | |
177 | 163 | | |
| |||
0 commit comments