diff options
| author | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-09-08 01:58:59 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-09-08 01:58:59 -0700 |
| commit | fbe2007deb9618e497097082f2c1af1be9c07c1c (patch) | |
| tree | 94d8f62defb68efd7bc4c82697608b7b922e85a2 | |
| parent | f8a970e98bcef40142dee39642320f1cab5a78aa (diff) | |
| download | nova-fbe2007deb9618e497097082f2c1af1be9c07c1c.tar.gz nova-fbe2007deb9618e497097082f2c1af1be9c07c1c.tar.xz nova-fbe2007deb9618e497097082f2c1af1be9c07c1c.zip | |
fixed missing paren
| -rw-r--r-- | nova/db/sqlalchemy/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
