summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Leafe <ed@leafe.com>2011-01-19 09:21:04 -0600
committerEd Leafe <ed@leafe.com>2011-01-19 09:21:04 -0600
commitceb5f7ca02d46920c0f18372b8a8aabc0c423e31 (patch)
tree739e98a455c8acdacc90bdf3984ffd0ed093c31e
parent68c9c8930038fe3af3092f3de75591146d57c9e4 (diff)
minor code cleanup
-rw-r--r--nova/db/sqlalchemy/api.py2
-rw-r--r--nova/virt/xenapi/fake.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py
index e0c25d174..a53f847b1 100644
--- a/nova/db/sqlalchemy/api.py
+++ b/nova/db/sqlalchemy/api.py
@@ -1922,7 +1922,7 @@ def console_pool_get(context, pool_id):
filter_by(id=pool_id).\
first()
if not result:
- raise exception.NotFound(_("No console pool with id %(pool_id)s")i
+ raise exception.NotFound(_("No console pool with id %(pool_id)s")
% locals())
return result
diff --git a/nova/virt/xenapi/fake.py b/nova/virt/xenapi/fake.py
index abbf91c1f..bcc129123 100644
--- a/nova/virt/xenapi/fake.py
+++ b/nova/virt/xenapi/fake.py
@@ -282,7 +282,8 @@ class SessionBase(object):
if impl is not None:
def callit(*params):
- LOG.debug(_('Calling %(name)s %(impl)s') % locals())
+ localname = name
+ LOG.debug(_('Calling %(localname)s %(impl)s') % locals())
self._check_session(params)
return impl(*params)
return callit