python-openstackclient/openstackclient/identity
Vishakha Agarwal 81fd5c995d 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
2018-11-09 07:53:55 +05:30
..
v2_0 Merge "Add sort support to project list" 2017-03-16 13:01:56 +00:00
v3 Updated the take_actions for unified limits 2018-11-09 07:53:55 +05:30
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
client.py osc-lib: shell 2016-08-05 13:48:55 -05:00
common.py Updated the take_actions for unified limits 2018-11-09 07:53:55 +05:30