No message on error
Bug #1246356 reported by
Jakub Ružička
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Undecided
|
Terry Howe |
Bug Description
Errors are now handled this way in shell.py:
try:
return OpenStackShell(
except Exception:
return 1
Easiest and most common error is missing credentials.
In case command is called, this leads to proper message, i.e.:
# openstack user list
ERROR: cliff.app You must provide a username via either --os-username or env[OS_USERNAME]
But when called interactively, openstack just silently exits with 1:
# openstack ; echo $?
1
I wonder if it's not worthy to just display the Exception error? If it isn't for some reason, this case should be handled properly.
description: | updated |
Changed in python-openstackclient: | |
assignee: | nobody → Terry Howe (thowe-g) |
Changed in python-openstackclient: | |
status: | In Progress → Fix Committed |
Changed in python-openstackclient: | |
milestone: | none → m2 |
Changed in python-openstackclient: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Also, when missing required package version, the exception got thrown away. It took some time to figure out what went wrong instead of just reading the message.