summaryrefslogtreecommitdiff
path: root/openstackclient/api
diff options
context:
space:
mode:
authorVishakha Agarwal <agarwalvishakha18@gmail.com>2018-10-22 13:51:30 +0530
committerVishakha Agarwal <agarwalvishakha18@gmail.com>2018-11-09 07:53:55 +0530
commit81fd5c995d7cce45f45e37af8a6b0309308a4cba (patch)
tree70d7bd22746d510366eab2ecb5e8b309cf94ca6b /openstackclient/api
parent097b45686e74d7f3ef086a1684e745cf83e73767 (diff)
downloadpython-openstackclient-81fd5c995d7cce45f45e37af8a6b0309308a4cba.tar.gz
Updated the take_actions for unified limits
When user passes --region None, the find_resource of osc_lib calls get() of region. The get API of region ignores the name param returning all the regions in result. As the find_resource checks many cases against the result returned by get API. The output comes greater than 1, thus returning "More than one region ID exist" which is incorrect. However in case of region which cannot be filtered by name we do not require to check these many cases. The solution is to directly call the get method of APIs and returning No resource name exist with the xyz" on passing invaid parameter. And returning all in case of None. Thus created a new function get_resource which can be used in future too by these types of API's. Change-Id: Ib3f881d34a82af97199ce51bfbefc6f3f08599f1 Closes-bug: #1799153
Diffstat (limited to 'openstackclient/api')
0 files changed, 0 insertions, 0 deletions