From fbe2007deb9618e497097082f2c1af1be9c07c1c Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Wed, 8 Sep 2010 01:58:59 -0700 Subject: fixed missing paren --- nova/db/sqlalchemy/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nova/db') diff --git a/nova/db/sqlalchemy/models.py b/nova/db/sqlalchemy/models.py index 960b7089b..846fe362f 100644 --- a/nova/db/sqlalchemy/models.py +++ b/nova/db/sqlalchemy/models.py @@ -174,7 +174,7 @@ class Service(BASE, NovaBase): ).filter_by(host=host ).filter_by(binary=binary ).filter_by(deleted=False - .one() + ).one() except exc.NoResultFound: new_exc = exception.NotFound("No model for %s, %s" % (host, binary)) @@ -338,7 +338,7 @@ class FixedIp(BASE, NovaBase): return session.query(cls ).filter_by(address=str_id ).filter_by(deleted=False - .one() + ).one() except exc.NoResultFound: new_exc = exception.NotFound("No model for address %s" % str_id) raise new_exc.__class__, new_exc, sys.exc_info()[2] @@ -367,7 +367,7 @@ class FloatingIp(BASE, NovaBase): return session.query(cls ).filter_by(address=str_id ).filter_by(deleted=False - .one() + ).one() except exc.NoResultFound: session.rollback() new_exc = exception.NotFound("No model for address %s" % str_id) -- cgit