summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/nova/exception.py b/nova/exception.py
index c81362dcf..a9afe37a7 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -53,25 +53,6 @@ class ConvertedException(webob.exc.WSGIHTTPException):
super(ConvertedException, self).__init__()
-class ProcessExecutionError(IOError):
- def __init__(self, stdout=None, stderr=None, exit_code=None, cmd=None,
- description=None):
- self.exit_code = exit_code
- self.stderr = stderr
- self.stdout = stdout
- self.cmd = cmd
- self.description = description
-
- if description is None:
- description = _('Unexpected error while running command.')
- if exit_code is None:
- exit_code = '-'
- message = _('%(description)s\nCommand: %(cmd)s\n'
- 'Exit code: %(exit_code)s\nStdout: %(stdout)r\n'
- 'Stderr: %(stderr)r') % locals()
- IOError.__init__(self, message)
-
-
def _cleanse_dict(original):
"""Strip all admin_password, new_pass, rescue_pass keys from a dict."""
return dict((k, v) for k, v in original.iteritems() if not "_pass" in k)