Host and failover segments list apis return 500 InternalServerError if
you pass invalid sort_key or sort_dir.
Caught exception.InvalidSortKey at controller level and also allowed
multiple sort_keys and sort_dirs to pass.
NOTE:
Allowed to pass multiple sort keys to list apis.
Also moved the processing of request parameters from masakari/ha/api.py
to respective failover segments and hosts controllers as request parameters
should be handled in controller itself.
Reviewed: https:/ /review. openstack. org/382280 /git.openstack. org/cgit/ openstack/ masakari/ commit/ ?id=77dd1ea0bde dff4ce10c4c2386 43962a677aa63b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 77dd1ea0bdedff4 ce10c4c23864396 2a677aa63b
Author: dineshbhor <email address hidden>
Date: Mon Oct 3 20:12:52 2016 +0530
Fix 500 if you pass invalid sort_key and sort_dir
Host and failover segments list apis return 500 InternalServerError if
you pass invalid sort_key or sort_dir.
Caught exception. InvalidSortKey at controller level and also allowed
multiple sort_keys and sort_dirs to pass.
NOTE:
Allowed to pass multiple sort keys to list apis.
Also moved the processing of request parameters from masakari/ha/api.py
to respective failover segments and hosts controllers as request parameters
should be handled in controller itself.
Closes-Bug: #1630530 020099d5bac2b2c a0b03aa353e
Change-Id: Ib9d0faf5ca737a