mishandled error on key-pair generation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
In Progress
|
Undecided
|
Matthew D. Wood |
Bug Description
While generating a key-pair, certain exceptions aren't being handled correctly in that they aren't being redirected.
This leaves us with a NameError on <keypair> after the exception was supposed to be handled.
[code]
class GenerateView(View):
def get(self, request, keypair_name=None):
try:
keypair = api.nova.
except Exception:
raise exceptions.
response = http.HttpRespon
return response
[/code]
I know that Unauthorized exceptions aren't redirected inside exceptions.handle, even if a redirect is specified. There may be other exceptions that slip through, I've been mystified by this type of thing in the past.
Fix proposed to branch: master /review. openstack. org/86649
Review: https:/