diff options
author | Andrew Laski <andrew.laski@rackspace.com> | 2013-04-18 14:36:26 -0400 |
---|---|---|
committer | Andrew Laski <andrew.laski@rackspace.com> | 2013-04-18 16:28:45 -0400 |
commit | 7e006ca39fc57e35244f471c0f0bb6773fdbbc28 (patch) | |
tree | b3ff33cfab07c5363b408a20c75c80b37fdc39e4 /nova/version.py | |
parent | 3572a07311788b17f3645a2e4d89cd338907d24c (diff) | |
download | nova-7e006ca39fc57e35244f471c0f0bb6773fdbbc28.tar.gz nova-7e006ca39fc57e35244f471c0f0bb6773fdbbc28.tar.xz nova-7e006ca39fc57e35244f471c0f0bb6773fdbbc28.zip |
Don't swallow PolicyNotAuthorized for resize/reboot actions
Removes 'except Exception' lines in the api which were preventing
PolicyNotAuthorized exceptions from bubbling up and returning 403 to the
caller. This addresses policy exceptions in confirmResize,
revertResize, and reboot.
The try block calls into the compute api which sends a cast to perform
to bulk of the work, so there is little chance of an exception bubbling
up which is not already being caught.
Removes a unit test for a condition that should not exist.
Bug 1170453
Change-Id: I516a19894ab3d183057c774e84c4faa7053a6463
Diffstat (limited to 'nova/version.py')
0 files changed, 0 insertions, 0 deletions