Merge "HOT intrinisic function list_join like Fn::Join"

This commit is contained in:
Jenkins
2014-07-07 03:41:56 +00:00
committed by Gerrit Code Review
3 changed files with 38 additions and 3 deletions

View File

@@ -726,6 +726,26 @@ The *resource ID* of the referenced resources as used in the current template is
given as single parameter to the get_resource function.
list_join
--------
The *list_join* function joins a list of strings with the given delimiter.
The syntax of the list_join function is as follows:
::
list_join:
- <delimiter>
- <list to join>
A sample use of this function with a simple list is shown below.
::
list_join: [', ', ['one', 'two', 'and three']]
This would resolve to "one, two, and three".
resource_facade
---------------
The *resource_facade* function allows a provider template to retrieve data