Commit 6d350fa
MT#61052 NGCP::Template::Plugin::Utils: Do not generate bogus YAML on empty string
When we pass an empty string the current to_yaml() function generates
broken YAML such as "--- ''", which then breaks code parsing that
expecting valid YAML. If we pass an empty string, return an empty string
as well.
(cherry picked from commit ae2d6e6)
(cherry picked from commit 81a79af)
Change-Id: I8743bed2ca9888409a2f74fa0012f65b7b307e211 parent 6f0163c commit 6d350fa
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments