summaryrefslogtreecommitdiff
path: root/openstackclient/identity
diff options
context:
space:
mode:
authorJose Castro Leon <jose.castro.leon@cern.ch>2019-03-14 12:33:51 +0000
committerDean Troyer <dtroyer@gmail.com>2019-05-08 16:22:27 -0500
commit04e03b2a1fe34046e2148d3c1d17b9053010c8af (patch)
tree4a9220f0c7db50dedee6f93c17805eb46bb32512 /openstackclient/identity
parent70cf7ea1ced4724ebf11aa526c5c9cac983a835a (diff)
downloadpython-openstackclient-04e03b2a1fe34046e2148d3c1d17b9053010c8af.tar.gz
Fix bug in endpoint group deletion
There is a typo in the endpoint group deletion, due to this you can't remove endpoint groups once assigned. I am adding also the unit tests to avoid this kind of issues in the future Task: 30640 Story: 2005521 Change-Id: Ie938f2c9894bb39b4c0ed1f7aa3a6a751a303058
Diffstat (limited to 'openstackclient/identity')
-rw-r--r--openstackclient/identity/v3/endpoint_group.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/openstackclient/identity/v3/endpoint_group.py b/openstackclient/identity/v3/endpoint_group.py
index e254973b..66bd164d 100644
--- a/openstackclient/identity/v3/endpoint_group.py
+++ b/openstackclient/identity/v3/endpoint_group.py
@@ -204,11 +204,11 @@ class ListEndpointGroup(command.Lister):
if endpointgroup:
# List projects associated to the endpoint group
- columns = ('ID', 'Name')
+ columns = ('ID', 'Name', 'Description')
data = client.endpoint_filter.list_projects_for_endpoint_group(
endpoint_group=endpointgroup.id)
elif project:
- columns = ('ID', 'Name')
+ columns = ('ID', 'Name', 'Description')
data = client.endpoint_filter.list_endpoint_groups_for_project(
project=project.id)
else:
@@ -251,7 +251,7 @@ class RemoveProjectFromEndpointGroup(command.Command):
parsed_args.project,
parsed_args.project_domain)
- client.endpoint_filter.delete_endpoint_group_to_project(
+ client.endpoint_filter.delete_endpoint_group_from_project(
endpoint_group=endpointgroup.id,
project=project.id)