Commit 2eb4538
authored
[yaml] Use DoubleQuoted for octals instead of LocalTag (#4419)
This pull request updates the YAML emission logic to use double quotes
for strings that look like octal numbers, rather than attempting to them
explicitly as strings. Corresponding unit tests have also been updated
to reflect this new behavior.
YAML::DoubleQuoted was originally avoided in favor of explicit tags due
to perceived issues with timeouts using DoubleQuoted, but it appears
that this is not a result of the use of DoubleQuoted (loading some
cloud-init YAMLs simply takes a long time!)
fixes #44182 files changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
187 | 185 | | |
188 | 186 | | |
189 | 187 | | |
| |||
0 commit comments