GitHub user sjcorbett opened a pull request: https://github.com/apache/brooklyn-server/pull/951
Support iteration of hashes in templates DotSplittingTemplateModel implements `TemplateHashModelEx2` (rather than just `TemplateHashModel`), meaning config/sensor map key/vals can be iterated in templates. For example: ``` <#list config['sections'] as k, v> ${k} = ${v} </#list> ``` Until now a snippet like this would have caused an exception with message "NonExtendedHashException: For "#list" list source: Expected an extended hash, but this has evaluated to a hash (wrapper: org.apache.brooklyn.util.core.text.TemplateProcessor$DotSplittingTemplateModel)" You can merge this pull request into a Git repository by running: $ git pull https://github.com/sjcorbett/brooklyn-server template-hash Alternatively you can review and apply these changes as the patch at: https://github.com/apache/brooklyn-server/pull/951.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #951 ---- commit 948988418eef29ec7a7e33b90dc35be348ad2202 Author: Sam Corbett <sam.corbett@...> Date: 2018-02-22T16:45:13Z Replace deprecated constant with equivalent commit 6fa75adb0edb0e9c80c53586fe4c2686d5ca8c26 Author: Sam Corbett <sam.corbett@...> Date: 2018-02-22T16:45:30Z Support iteration of hashes in templates DotSplittingTemplateModel implements TemplateHashModelEx2 (rather than just TemplateHashModel), meaning config/sensor map key/vals can be iterated in templates. ---- ---