Fix a grammatical mistake of the example online.

Yaml don't support a value define like %value%.
For this reason,the example online can't run successfully.


 Closes-Bug: #1542591

Change-Id: I0c4adb467fba71a43b2250c1527f198de744dcf3
This commit is contained in:
zhaozhilong 2016-02-06 17:33:09 +08:00
parent 12fb1c0224
commit 39b2ea7566
1 changed files with 7 additions and 7 deletions

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.