diff options
author | Chuck Short <chuck.short@canonical.com> | 2013-01-03 09:04:58 -0600 |
---|---|---|
committer | Chuck Short <chuck.short@canonical.com> | 2013-01-18 14:08:57 -0600 |
commit | 5cce71baaa13fc651d76b6b26a29effbf879f1b1 (patch) | |
tree | 37bf0ca16344390b1bb3af24558751919595de19 /nova/exception.py | |
parent | 7d20f1fe553b0db5883e787992413e7a0ca4f099 (diff) | |
download | nova-5cce71baaa13fc651d76b6b26a29effbf879f1b1.tar.gz nova-5cce71baaa13fc651d76b6b26a29effbf879f1b1.tar.xz nova-5cce71baaa13fc651d76b6b26a29effbf879f1b1.zip |
Refactor EC2 keypairs exception
According to the following document:
http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/api-error-codes.html
The EC2 API sends specific error codes when keypair listing or
keypair generation fails, specifically the error codes are
InvalidKeyPair.Duplicate - duplicate keypair
InvalidKeyPair.Format - keypair format invalid
InvalidKeyPair.NotFound - keypair not found
ResourceLimitExceeded - keypair quota exceeded
Refactored create_key_pair and describe_key_pair so that
it throws the correct EC2 error codes according to the
public EC2 API specs.
Also removed some duplicate exceptions as well.
Fixes LP: 1072318
DocImpact
Change-Id: Ib7045e49211d9300e9cb6ca0bfe80e569d635c9b
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions