python-octaviaclient/octaviaclient
Michael Johnson 96343bd979 Fix long CLI error messages
The python-octaviaclient plugin was using "choices" for validating
port numbers and weights. The cliff "choices" parameter will output
an error that includes every valid "choice". For port numbers, this
is 65,000+ valid options.
This patch changes this to produce a more user friendly error
message.

This patch also fixes the listener protocol-port type validation.

Change-Id: I4cb32bcc4681bd99f178d31547af37a7c582d210
Story: 2007218
Task: 38470
(cherry picked from commit 1c9fd5ba80)
2020-02-06 13:09:46 -08:00
..
api Make sure we always requests JSON responses 2019-04-12 14:51:02 +12:00
hacking Replace six.iteritems() with .items() 2017-06-29 10:02:20 +05:30
osc Fix long CLI error messages 2020-02-06 13:09:46 -08:00
tests Fix long CLI error messages 2020-02-06 13:09:46 -08:00
__init__.py Version name correction to allow installing 2017-04-28 22:29:43 +09:00