diff options
Diffstat (limited to 'novaclient/v2/shell.py')
-rw-r--r-- | novaclient/v2/shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py index a0a99d76..36a0f1c6 100644 --- a/novaclient/v2/shell.py +++ b/novaclient/v2/shell.py @@ -465,8 +465,7 @@ def _boot(cs, args): hints = {} if args.scheduler_hints: - for hint in args.scheduler_hints: - key, _sep, value = hint.partition('=') + for key, value in args.scheduler_hints: # NOTE(vish): multiple copies of the same hint will # result in a list of values if key in hints: @@ -747,6 +746,7 @@ def _boot(cs, args): '--hint', action='append', dest='scheduler_hints', + type=_key_value_pairing, default=[], metavar='<key=value>', help=_("Send arbitrary key/value pairs to the scheduler for custom " |