Fixed syntax in share_networks example comment

The comment shows how to use manila_share_networks context in tasks.
The syntax in this example for the project-share_network mapping was
wrong.
This patch fixes the syntax of the share_network mapping example
and shows where to be placed inside of 'context'.

Change-Id: I6e58be0598790e87f087d20128f764f9efb7efef
Closes-Bug: #1587164
This commit is contained in:
Tom Patzig 2016-05-30 21:21:48 +02:00
parent a29fcb15f3
commit 58e861ac0e
1 changed files with 10 additions and 5 deletions

View File

@ -47,11 +47,16 @@ class ManilaShareNetworks(context.Context):
# users.
# Expected value is dict of lists where tenant Name or ID is key
# and list of share_network Names or IDs is value. Example:
# share_networks = [
# {"tenant_1_name_or_id": ["share_network_1_name_or_id",
# "share_network_2_name_or_id"]},
# {"tenant_2_name_or_id": ["share_network_3_name_or_id"]}
# ]
# "context": {
# "manila_share_networks": {
# "use_share_networks": true,
# "share_networks": {
# "tenant_1_name_or_id": ["share_network_1_name_or_id",
# "share_network_2_name_or_id"],
# "tenant_2_name_or_id": ["share_network_3_name_or_id"]
# }
# }
# }
# Also, make sure that all 'existing users' in appropriate
# registered deployment have share networks if its usage is
# enabled, else Rally will randomly take users that does not