From ec0a65d81fd11d26be77b45827a4dd7c77711675 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Fri, 11 May 2012 10:07:06 -0400 Subject: Create an internal key pair API. Creates an internal key pair API and update the EC2 and OS API's to use it. This de-duplicates some of the code used to manage keypairs across the APIs. Fixes LP Bug #998059. Change-Id: I10d58d7ce68cc2b993c72b6639f66c72def3bfbc --- nova/exception.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index c97290480..c1d02faaa 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -993,6 +993,10 @@ class OnsetFileContentLimitExceeded(QuotaError): message = _("Personality file content too long") +class KeypairLimitExceeded(QuotaError): + message = _("Maximum number of key pairs exceeded") + + class AggregateError(NovaException): message = _("Aggregate %(aggregate_id)s: action '%(action)s' " "caused an error: %(reason)s.") -- cgit