All dictionary options need be a string
All dictionary options need be a string, otherwise only the first "key: value" valids. Change-Id: I17802a362b0e78f2d9a5a4930472704f76510fd6
This commit is contained in:
@@ -32,7 +32,7 @@ class ListAction(command.Lister):
|
||||
parser = super(ListAction, self).get_parser(prog_name)
|
||||
parser.add_argument(
|
||||
'--filters',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_("Filter parameters to apply on returned actions. "
|
||||
"This can be specified multiple times, or once with "
|
||||
"parameters separated by a semicolon. The valid filter "
|
||||
|
||||
@@ -38,7 +38,7 @@ class ListCluster(command.Lister):
|
||||
parser = super(ListCluster, self).get_parser(prog_name)
|
||||
parser.add_argument(
|
||||
'--filters',
|
||||
metavar='<key1=value1;key=value...>',
|
||||
metavar='<"key1=value1;key=value...">',
|
||||
help=_("Filter parameters to apply on returned clusters. "
|
||||
"This can be specified multiple times, or once with "
|
||||
"parameters separated by a semicolon. The valid filter"
|
||||
@@ -178,7 +178,7 @@ class CreateCluster(command.ShowOne):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--metadata',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_('Metadata values to be attached to the cluster. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon.'),
|
||||
@@ -236,7 +236,7 @@ class UpdateCluster(command.ShowOne):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--metadata',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_('Metadata values to be attached to the cluster. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon'),
|
||||
|
||||
@@ -30,7 +30,7 @@ class ClusterPolicyList(command.Lister):
|
||||
parser = super(ClusterPolicyList, self).get_parser(prog_name)
|
||||
parser.add_argument(
|
||||
'--filters',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_("Filter parameters to apply on returned results. "
|
||||
"This can be specified multiple times, or once with "
|
||||
"parameters separated by a semicolon. The valid filter "
|
||||
|
||||
@@ -32,7 +32,7 @@ class ListEvent(command.Lister):
|
||||
parser = super(ListEvent, self).get_parser(prog_name)
|
||||
parser.add_argument(
|
||||
'--filters',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_("Filter parameters to apply on returned events. "
|
||||
"This can be specified multiple times, or once with "
|
||||
"parameters separated by a semicolon. The valid filter "
|
||||
|
||||
@@ -40,7 +40,7 @@ class ListNode(command.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--filters',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_("Filter parameters to apply on returned nodes. "
|
||||
"This can be specified multiple times, or once with "
|
||||
"parameters separated by a semicolon. The valid filter"
|
||||
@@ -184,7 +184,7 @@ class CreateNode(command.ShowOne):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--metadata',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_('Metadata values to be attached to the node. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon'),
|
||||
@@ -243,7 +243,7 @@ class UpdateNode(command.ShowOne):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--metadata',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_('Metadata values to be attached to the node. '
|
||||
'Metadata can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon'),
|
||||
|
||||
@@ -54,7 +54,7 @@ class ListPolicy(command.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--filters',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_("Filter parameters to apply on returned policies. "
|
||||
"This can be specified multiple times, or once with "
|
||||
"parameters separated by a semicolon. The valid filter "
|
||||
|
||||
@@ -102,7 +102,7 @@ class ListProfile(command.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--filters',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_("Filter parameters to apply on returned profiles. "
|
||||
"This can be specified multiple times, or once with "
|
||||
"parameters separated by a semicolon. The valid filter "
|
||||
@@ -215,7 +215,7 @@ class CreateProfile(command.ShowOne):
|
||||
parser = super(CreateProfile, self).get_parser(prog_name)
|
||||
parser.add_argument(
|
||||
'--metadata',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_('Metadata values to be attached to the profile. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon'),
|
||||
@@ -277,7 +277,7 @@ class UpdateProfile(command.ShowOne):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--metadata',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_('Metadata values to be attached to the profile. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon'),
|
||||
|
||||
@@ -34,7 +34,7 @@ class ListReceiver(command.Lister):
|
||||
parser = super(ListReceiver, self).get_parser(prog_name)
|
||||
parser.add_argument(
|
||||
'--filters',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_("Filter parameters to apply on returned receivers. "
|
||||
"This can be specified multiple times, or once with "
|
||||
"parameters separated by a semicolon. The valid filter "
|
||||
@@ -162,7 +162,7 @@ class CreateReceiver(command.ShowOne):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--params',
|
||||
metavar='<key1=value1;key2=value2...>',
|
||||
metavar='<"key1=value1;key2=value2...">',
|
||||
help=_('A dictionary of parameters that will be passed to target '
|
||||
'action when the receiver is triggered'),
|
||||
action='append'
|
||||
|
||||
@@ -83,7 +83,7 @@ def do_profile_type_show(service, args):
|
||||
|
||||
# PROFILES
|
||||
|
||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-f', '--filters', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Filter parameters to apply on returned profiles. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'parameters separated by a semicolon.'),
|
||||
@@ -146,7 +146,7 @@ def _show_profile(service, profile_id):
|
||||
|
||||
@utils.arg('-s', '--spec-file', metavar='<SPEC FILE>', required=True,
|
||||
help=_('The spec file used to create the profile.'))
|
||||
@utils.arg('-M', '--metadata', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-M', '--metadata', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Metadata values to be attached to the profile. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon.'),
|
||||
@@ -192,7 +192,7 @@ def do_profile_show(service, args):
|
||||
|
||||
@utils.arg('-n', '--name', metavar='<NAME>',
|
||||
help=_('The new name for the profile.'))
|
||||
@utils.arg('-M', '--metadata', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-M', '--metadata', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Metadata values to be attached to the profile. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon.'),
|
||||
@@ -311,7 +311,7 @@ def do_policy_type_show(service, args):
|
||||
|
||||
# POLICIES
|
||||
|
||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-f', '--filters', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Filter parameters to apply on returned policies. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'parameters separated by a semicolon.'),
|
||||
@@ -449,7 +449,7 @@ def do_policy_validate(service, args):
|
||||
# CLUSTERS
|
||||
|
||||
|
||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-f', '--filters', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Filter parameters to apply on returned clusters. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'parameters separated by a semicolon.'),
|
||||
@@ -518,7 +518,7 @@ def _show_cluster(service, cluster_id):
|
||||
'min_size is specified else 0.'))
|
||||
@utils.arg('-t', '--timeout', metavar='<TIMEOUT>', type=int,
|
||||
help=_('Cluster creation timeout in seconds.'))
|
||||
@utils.arg('-M', '--metadata', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-M', '--metadata', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Metadata values to be attached to the cluster. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon.'),
|
||||
@@ -745,7 +745,7 @@ def do_cluster_run(service, args):
|
||||
help=_('ID or name of new profile to use.'))
|
||||
@utils.arg('-t', '--timeout', metavar='<TIMEOUT>',
|
||||
help=_('New timeout (in seconds) value for the cluster.'))
|
||||
@utils.arg('-M', '--metadata', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-M', '--metadata', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Metadata values to be attached to the cluster. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon.'),
|
||||
@@ -777,7 +777,7 @@ def do_cluster_show(service, args):
|
||||
_show_cluster(service, args.id)
|
||||
|
||||
|
||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-f', '--filters', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Filter parameters to apply on returned nodes. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'parameters separated by a semicolon.'),
|
||||
@@ -959,7 +959,7 @@ def do_cluster_scale_in(service, args):
|
||||
print('Request accepted by action %s' % resp['action'])
|
||||
|
||||
|
||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-f', '--filters', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Filter parameters to apply on returned results. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'parameters separated by a semicolon.'),
|
||||
@@ -1086,7 +1086,7 @@ def do_cluster_recover(service, args):
|
||||
|
||||
@utils.arg('-c', '--cluster', metavar='<CLUSTER>',
|
||||
help=_('ID or name of cluster from which nodes are to be listed.'))
|
||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-f', '--filters', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Filter parameters to apply on returned nodes. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'parameters separated by a semicolon.'),
|
||||
@@ -1165,7 +1165,7 @@ def _show_node(service, node_id, show_details=False):
|
||||
help=_('Cluster Id for this node.'))
|
||||
@utils.arg('-r', '--role', metavar='<ROLE>',
|
||||
help=_('Role for this node in the specific cluster.'))
|
||||
@utils.arg('-M', '--metadata', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-M', '--metadata', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Metadata values to be attached to the node. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon.'),
|
||||
@@ -1221,7 +1221,7 @@ def do_node_delete(service, args):
|
||||
help=_('ID or name of new profile to use.'))
|
||||
@utils.arg('-r', '--role', metavar='<ROLE>',
|
||||
help=_('Role for this node in the specific cluster.'))
|
||||
@utils.arg('-M', '--metadata', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-M', '--metadata', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Metadata values to be attached to the node. '
|
||||
'Metadata can be specified multiple times, or once with '
|
||||
'key-value pairs separated by a semicolon.'),
|
||||
@@ -1289,7 +1289,7 @@ def do_node_recover(service, args):
|
||||
# RECEIVERS
|
||||
|
||||
|
||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-f', '--filters', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Filter parameters to apply on returned receivers. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'parameters separated by a semicolon.'),
|
||||
@@ -1367,7 +1367,7 @@ def do_receiver_show(service, args):
|
||||
@utils.arg('-a', '--action', metavar='<ACTION>',
|
||||
help=_('Name or ID of the targeted action to be triggered. '
|
||||
'Required if receiver type is webhook.'))
|
||||
@utils.arg('-P', '--params', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-P', '--params', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('A dictionary of parameters that will be passed to target '
|
||||
'action when the receiver is triggered.'),
|
||||
action='append')
|
||||
@@ -1419,7 +1419,7 @@ def do_receiver_delete(service, args):
|
||||
# EVENTS
|
||||
|
||||
|
||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-f', '--filters', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Filter parameters to apply on returned events. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'parameters separated by a semicolon.'),
|
||||
@@ -1486,7 +1486,7 @@ def do_event_show(service, args):
|
||||
# ACTIONS
|
||||
|
||||
|
||||
@utils.arg('-f', '--filters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||
@utils.arg('-f', '--filters', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">',
|
||||
help=_('Filter parameters to apply on returned actions. '
|
||||
'This can be specified multiple times, or once with '
|
||||
'parameters separated by a semicolon.'),
|
||||
|
||||
Reference in New Issue
Block a user