summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortermie <github@anarkystic.com>2011-04-20 12:08:24 -0700
committertermie <github@anarkystic.com>2011-04-20 12:08:24 -0700
commit6eacc130af49ced7a1e5ce511c7096dd7563b4b2 (patch)
tree60d99fd36060859258313283d6b049737c37086a
parentf69600e1844898bd48dc8f615c6684044d9aebe0 (diff)
downloadnova-6eacc130af49ced7a1e5ce511c7096dd7563b4b2.tar.gz
nova-6eacc130af49ced7a1e5ce511c7096dd7563b4b2.tar.xz
nova-6eacc130af49ced7a1e5ce511c7096dd7563b4b2.zip
cleanups per code review
-rw-r--r--nova/utils.py4
-rw-r--r--nova/wsgi.py1
2 files changed, 2 insertions, 3 deletions
diff --git a/nova/utils.py b/nova/utils.py
index 59f694196..b783f6c14 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -182,11 +182,11 @@ def ssh_execute(ssh, cmd, process_input=None,
addl_env=None, check_exit_code=True):
LOG.debug(_('Running cmd (SSH): %s'), ' '.join(cmd))
if addl_env:
- raise exception.Error('Environment not supported over SSH')
+ raise exception.Error(_('Environment not supported over SSH'))
if process_input:
# This is (probably) fixable if we need it...
- raise exception.Error('process_input not supported over SSH')
+ raise exception.Error(_('process_input not supported over SSH'))
stdin_stream, stdout_stream, stderr_stream = ssh.exec_command(cmd)
channel = stdout_stream.channel
diff --git a/nova/wsgi.py b/nova/wsgi.py
index 119fcbe4c..418087641 100644
--- a/nova/wsgi.py
+++ b/nova/wsgi.py
@@ -89,7 +89,6 @@ class Request(webob.Request):
Based on the query extension then the Accept header.
"""
-
parts = self.path.rsplit('.', 1)
if len(parts) > 1: