Merge "Fix a grammatical mistake of the example online."

This commit is contained in:
Jenkins 2016-02-15 07:21:10 +00:00 committed by Gerrit Code Review
commit 4ac615d906

View File

@ -1056,11 +1056,11 @@ include a list of ports given as a parameter
rules:
repeat:
for_each:
%port%: { get_param: ports }
<%port%>: { get_param: ports }
template:
protocol: tcp
port_range_min: %port%
port_range_max: %port%
port_range_min: <%port%>
port_range_max: <%port%>
The following example demonstrates how the use of multiple lists enables the
security group to also include parameterized protocols
@ -1085,11 +1085,11 @@ security group to also include parameterized protocols
rules:
repeat:
for_each:
%port%: { get_param: ports }
%protocol%: { get_param: protocols }
<%port%>: { get_param: ports }
<%protocol%>: { get_param: protocols }
template:
protocol: %protocol%
port_range_min: %port%
protocol: <%protocol%>
port_range_min: <%port%>
Note how multiple entries in the ``for_each`` argument are equivalent to
nested for-loops in most programming languages.