summaryrefslogtreecommitdiffstats
path: root/nova/db
diff options
context:
space:
mode:
authorIlya Alekseyev <ilyaalekseyev@acm.org>2011-06-27 16:33:01 +0400
committerIlya Alekseyev <ilyaalekseyev@acm.org>2011-06-27 16:33:01 +0400
commitef1f4d33fa5763ea602c2fc1098a4b230b86e82b (patch)
tree633297f435798bf420ce0094fae803190a797b05 /nova/db
parentfd3da28b567a66a31f2833a3c00d0b6ccf55eed8 (diff)
downloadnova-ef1f4d33fa5763ea602c2fc1098a4b230b86e82b.tar.gz
nova-ef1f4d33fa5763ea602c2fc1098a4b230b86e82b.tar.xz
nova-ef1f4d33fa5763ea602c2fc1098a4b230b86e82b.zip
review issues fixed
Diffstat (limited to 'nova/db')
-rw-r--r--nova/db/sqlalchemy/api.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py
index 426ea5127..55badb9e0 100644
--- a/nova/db/sqlalchemy/api.py
+++ b/nova/db/sqlalchemy/api.py
@@ -448,7 +448,7 @@ def floating_ip_get(context, ip_id):
filter_by(deleted=False).\
first()
if not result:
- raise exception.FloatingIpNotFound()
+ raise exception.FloatingIpNotFoundForFixedAddress()
return result
@@ -605,7 +605,7 @@ def floating_ip_get_by_address(context, address, session=None):
filter_by(deleted=can_read_deleted(context)).\
first()
if not result:
- raise exception.FloatingIpNotFound(fixed_ip=address)
+ raise exception.FloatingIpNotFoundForFixedAddress(fixed_ip=address)
return result
@@ -621,7 +621,7 @@ def floating_ip_get_by_ip(context, ip, session=None):
first()
if not result:
- raise exception.FloatingIpNotDefined(floating_ip=ip)
+ raise exception.FloatingIpNotFound(floating_ip=ip)
return result
@@ -761,7 +761,7 @@ def fixed_ip_get_by_address(context, address, session=None):
options(joinedload('instance')).\
first()
if not result:
- raise exception.FloatingIpNotFound(fixed_ip=address)
+ raise exception.FloatingIpNotFoundForFixedAddress(fixed_ip=address)
if is_user_context(context):
authorize_project_context(context, result.instance.project_id)