summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@yahoo.com>2010-09-20 19:19:28 -0700
committerVishvananda Ishaya <vishvananda@yahoo.com>2010-09-20 19:19:28 -0700
commit435a78e48ca63297af9c15ee826dbe0c6b8e7813 (patch)
tree898b9d05a486429f9ece4123a52b6e34c658ebf0 /nova/utils.py
parent86cd30b749e6da78d4ceb6c77f2116975429a81a (diff)
parentd8861d04a85044ae57ffd7eb9ab682879beecf7d (diff)
merged trunk
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/nova/utils.py b/nova/utils.py
index 8939043e6..d18dd9843 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -39,17 +39,6 @@ from nova.exception import ProcessExecutionError
FLAGS = flags.FLAGS
TIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
-class ProcessExecutionError(IOError):
- def __init__( self, stdout=None, stderr=None, exit_code=None, cmd=None,
- description=None):
- if description is None:
- description = "Unexpected error while running command."
- if exit_code is None:
- exit_code = '-'
- message = "%s\nCommand: %s\nExit code: %s\nStdout: %r\nStderr: %r" % (
- description, cmd, exit_code, stdout, stderr)
- IOError.__init__(self, message)
-
def import_class(import_str):
"""Returns a class from a string including module and class"""
mod_str, _sep, class_str = import_str.rpartition('.')