python-openstackclient/openstackclient
adrian-turjak 49f6032b69 Non-Admin can't list own projects
Due to a default Keystone policy until Newtown,
and the use of resource_find, non-admins are unable
to list their own projects.

This patch bypasses this problem while also introducing better
UX for non-admins wishing to get their project list.

'openstack project list' retains the default of 'list all projects'
but on a forbidden error will default instead to 'list my projects'.
This way for non-admins 'list my projects' feels like the default
without breaking the expected admin default.

Adding the '--my-projects' option allows admins to easily list their
own projects or allows non-admins to be explicit and bypass the
forbidden error fallback.

Change-Id: I1021276f69fbbf28e13e17c4e567d932fce7ed8b
Closes-Bug: #1627555
2017-03-20 14:40:56 +13:00
..
api Make 'object save' fast again 2017-01-09 16:19:29 +00:00
common Trivial Fix 2017-03-05 18:21:46 +00:00
compute Merge "Add a validation about options for server migrate command" 2017-03-16 15:52:50 +00:00
identity Non-Admin can't list own projects 2017-03-20 14:40:56 +13:00
image openstack image create : --file and --volume exclude each other 2017-02-24 08:50:37 +01:00
locale Imported Translations from Zanata 2016-06-04 06:18:46 +00:00
network Merge "Fix "security group list" command to display project ID properly" 2017-03-16 13:02:17 +00:00
object translate all command help strings 2016-11-17 02:33:42 +00:00
tests Non-Admin can't list own projects 2017-03-20 14:40:56 +13:00
volume Merge "Support --no-property in "volume set" command" 2017-03-06 03:47:49 +00:00
__init__.py Change version reporting to use pbr 2013-08-02 12:11:49 -05:00
i18n.py Update translation setup 2016-01-29 08:18:50 +09:00
shell.py Fix wrong behavior of parsing plugin service name 2017-02-08 00:47:22 +00:00