Deleting nonexistent endpoint gives incorrect error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm trying to delete an end-point with invalid id or id that does not exist in the system and getting the below error message:
ERROR: openstack More than one endpoint exists with the name 'non-existing-id'.
While the more appropriate message would be to say, No endpoint exists with the name 'non-existing-id'.
osc:/ # openstack --version
openstack 0.4.1
osc:/ # openstack --insecure endpoint list
+------
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+------
| 14d171e5d9914d8
+------
osc:/ # openstack --insecure endpoint delete 14d171e5d9914d8
ERROR: openstack More than one endpoint exists with the name '14d171e5d9914d
osc:/ # openstack --insecure endpoint delete non-existing-id
ERROR: openstack More than one endpoint exists with the name 'non-existing-id'.
# zypper info openstack-keystone
Loading repository data...
Reading installed packages...
Information for package openstack-keystone:
-------
Repository: staging
Name: openstack-keystone
Version: 2014.2.3.dev15-1.1
Arch: noarch
Vendor: obs://build.
Installed: Yes
Status: up-to-date
Installed Size: 81.9 KiB
Summary: OpenStack Identity Service (Keystone)
Description:
Keystone is an OpenStack project that provides Identity, Token, Catalog
and Policy services for use specifically by projects in the OpenStack
family.
affects: | keystone → python-openstackclient |
summary: |
- Deleting nonexistent end-point gives incorrect error message + Deleting nonexistent endpoint gives incorrect error message |
tags: |
added: error-message user-experience removed: error-messge |
I'm not seeing this on master
(.venv) terry@f350: ~/python- openstackclient $ os endpoint delete 870f2a74a1d142e c9c202505c11e79 9 c9c202505c11e79 9 (HTTP 404)
ERROR: openstack Could not find endpoint: 870f2a74a1d142e