diff options
| author | termie <github@anarkystic.com> | 2011-04-20 12:08:24 -0700 |
|---|---|---|
| committer | termie <github@anarkystic.com> | 2011-04-20 12:08:24 -0700 |
| commit | 6eacc130af49ced7a1e5ce511c7096dd7563b4b2 (patch) | |
| tree | 60d99fd36060859258313283d6b049737c37086a | |
| parent | f69600e1844898bd48dc8f615c6684044d9aebe0 (diff) | |
| download | nova-6eacc130af49ced7a1e5ce511c7096dd7563b4b2.tar.gz nova-6eacc130af49ced7a1e5ce511c7096dd7563b4b2.tar.xz nova-6eacc130af49ced7a1e5ce511c7096dd7563b4b2.zip | |
cleanups per code review
| -rw-r--r-- | nova/utils.py | 4 | ||||
| -rw-r--r-- | nova/wsgi.py | 1 |
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: |
