Running "glance --os-image-api-version 2 image-list --visibility test" with incorrect --visibility option throws unclear error.
Bug #1403422 reported by
Kanchan Gupta
This bug report is a duplicate of:
Bug #1395207: glance create-image returned error message contains html keys..
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Incomplete
|
Undecided
|
yalei wang |
Bug Description
I was trying to check image-list based on visibility by using the following command:
glance --os-image-
But I got output:
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
Invalid visibility value: test<br /><br />
</body>
</html> (HTTP 400)
which does not provide any clear information.
Expected result:
Glance should throw an exception with proper message.
Changed in glance: | |
assignee: | nobody → Kanchan Gupta (kanchan-gupta1) |
Changed in glance: | |
assignee: | Kanchan Gupta (kanchan-gupta1) → nobody |
Changed in glance: | |
assignee: | nobody → yalei wang (yalei-wang) |
To post a comment you must log in.
Isn't "Invalid visibility value: test" a clear error message? Can it be even more accurate?