summaryrefslogtreecommitdiff
path: root/novaclient/v2/shell.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-10-02 17:23:12 +0000
committerGerrit Code Review <review@openstack.org>2019-10-02 17:23:12 +0000
commit79959abc90bc615687e3a940951ad9ec548178ec (patch)
tree8a0aca4d0a60f30f55d42c2c12ce659026091ae5 /novaclient/v2/shell.py
parent197625ff06618d8ade40d50fa696aad8df66ccfb (diff)
parent33627242e8f845934bcc5affb616108a79d28cbe (diff)
downloadpython-novaclient-stable/train.tar.gz
Merge "Stop silently ignoring invalid 'nova boot --hint' options" into stable/traintrain-em15.1.1stable/train
Diffstat (limited to 'novaclient/v2/shell.py')
-rw-r--r--novaclient/v2/shell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py
index 2dfd5c92..b95c7d6d 100644
--- a/novaclient/v2/shell.py
+++ b/novaclient/v2/shell.py
@@ -489,8 +489,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:
@@ -810,6 +809,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 "