openstack-python-openstackc.../openstackclient
Huanxuan Ao 7f93d8cc88 Show "target_project_id" attribute properly for network rbac object
According to the code in SDK:
https://github.com/openstack/python-openstacksdk/blob/master/openstack/network/v2/rbac_policy.py#L34
we can see the conlumn of "target_tenant" should be
"targer_project_id" but not "target_project". It is
the reason why could not show the "target_project"
in OSC, so this patch fix it.

Before this change:
(openstack) network rbac show b74fd644-e057-4d44-8ae1-7ca9967ea1e1
+----------------+--------------------------------------+
| Field          | Value                                |
+----------------+--------------------------------------+
| action         | access_as_shared                     |
| id             | b74fd644-e057-4d44-8ae1-7ca9967ea1e1 |
| object_id      | 8735b57f-606a-4f65-9902-2052a6d2a66d |
| object_type    | network                              |
| project_id     | 01c0ba43101b4080a52a5f79a55c56ff     |
| target_project |                                      |
+----------------+--------------------------------------+
After this change:
(openstack) network rbac show b74fd644-e057-4d44-8ae1-7ca9967ea1e1
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| action            | access_as_shared                     |
| id                | b74fd644-e057-4d44-8ae1-7ca9967ea1e1 |
| object_id         | 8735b57f-606a-4f65-9902-2052a6d2a66d |
| object_type       | network                              |
| project_id        | 01c0ba43101b4080a52a5f79a55c56ff     |
| target_project_id | c7ab4d2ea9e1487095a8ca24ea44ef38     |
+-------------------+--------------------------------------+

Change-Id: I53df127bfc3e43288c6afecdf872e6101b94a658
Closes-Bug: #1608903
2016-08-05 10:05:58 +08:00
..
api Standardize import format 2016-07-22 19:24:02 +08:00
common Allow setting quotas for server groups and server group members 2016-07-27 13:04:36 +03:00
compute Pass security group id to novaclient while adding security 2016-07-28 21:39:02 +05:30
identity Merge "Fix error for find_service() in identity" 2016-07-27 03:37:52 +00:00
image Remove execute permission on a few files 2016-07-22 17:38:34 +00:00
locale Imported Translations from Zanata 2016-06-04 06:18:46 +00:00
network Show "target_project_id" attribute properly for network rbac object 2016-08-05 10:05:58 +08:00
object Standardize import format 2016-07-22 19:24:02 +08:00
tests Show "target_project_id" attribute properly for network rbac object 2016-08-05 10:05:58 +08:00
volume Add support for deleting volumes with associated snapshots 2016-07-27 11:30:52 +08: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 arguments are not locale decoded into Unicode 2016-07-26 18:09:20 -04:00