Add documentation for compact()

This commit is contained in:
Anthony Stanton 2015-10-11 08:59:21 +02:00
parent 44135b9d89
commit b62833e7b8
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,11 @@ The supported built-in functions are:
* `base64encode(string)` - Returns a base64-encoded representation of the
given string.
* `compact(list)` - Removes empty string elements from a list. This can be
useful in some cases, for example when passing joined lists as module
variables or when parsing module outputs.
Example: `compact(module.my_asg.load_balancer_names)`
* `concat(list1, list2)` - Combines two or more lists into a single list.
Example: `concat(aws_instance.db.*.tags.Name, aws_instance.web.*.tags.Name)`