#1337 - Fix YamlLoader ... such that it loads multi-part yml source

This commit is contained in:
Rob Bygrave committed 2018-03-07 16:21:00 +13:00
1 parent 70aed3906e
commit 47e8d27212
1 file changed
+4 -1
@@ -21,9 +21,12 @@ class YamlLoader {
this.loadContext = loadContext;
}
@SuppressWarnings("unchecked")
void load(InputStream is) {
if (is != null) {
loadMap(yaml.load(is), null);
for (Object map : yaml.loadAll(is)) {
loadMap((Map<String, Object>)map, null);
}
}
}