From f918fb8583b3295b2e5e179db3f64d6724a34ca9 Mon Sep 17 00:00:00 2001 From: Blake Stoddard Date: Wed, 31 Jan 2018 14:50:00 -0500 Subject: [PATCH] website: fix ordering of interpolation functions --- website/docs/configuration/interpolation.html.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/docs/configuration/interpolation.html.md b/website/docs/configuration/interpolation.html.md index ab148fabc..89e872d16 100644 --- a/website/docs/configuration/interpolation.html.md +++ b/website/docs/configuration/interpolation.html.md @@ -187,6 +187,11 @@ The supported built-in functions are: * `chomp(string)` - Removes trailing newlines from the given string. + * `chunklist(list, size)` - Returns the `list` items chunked by `size`. + Examples: + * `chunklist(aws_subnet.foo.*.id, 1)`: will outputs `[["id1"], ["id2"], ["id3"]]` + * `chunklist(var.list_of_strings, 2)`: will outputs `[["id1", "id2"], ["id3", "id4"], ["id5"]]` + * `cidrhost(iprange, hostnum)` - Takes an IP address range in CIDR notation and creates an IP address with the given host number. If given host number is negative, the count starts from the end of the range. @@ -237,11 +242,6 @@ The supported built-in functions are: * `element(aws_subnet.foo.*.id, count.index)` * `element(var.list_of_strings, 2)` - * `chunklist(list, size)` - Returns the `list` items chunked by `size`. - Examples: - * `chunklist(aws_subnet.foo.*.id, 1)`: will outputs `[["id1"], ["id2"], ["id3"]]` - * `chunklist(var.list_of_strings, 2)`: will outputs `[["id1", "id2"], ["id3", "id4"], ["id5"]]` - * `file(path)` - Reads the contents of a file into the string. Variables in this file are _not_ interpolated. The contents of the file are read as-is. The `path` is interpreted relative to the working directory.