diff options
| author | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-09-12 23:09:15 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-09-12 23:09:15 -0700 |
| commit | 6cbf8b736cc2c9929c2ad69ddc8e8b4fc2d0f4ae (patch) | |
| tree | 7c6f6e730fe8b5bc0498e6e5d9572786d8a8daeb | |
| parent | c2c113917d3e354f85d473a6d646688b59abad17 (diff) | |
| download | nova-6cbf8b736cc2c9929c2ad69ddc8e8b4fc2d0f4ae.tar.gz nova-6cbf8b736cc2c9929c2ad69ddc8e8b4fc2d0f4ae.tar.xz nova-6cbf8b736cc2c9929c2ad69ddc8e8b4fc2d0f4ae.zip | |
removed second copy of ProcessExecutionError
| -rw-r--r-- | nova/utils.py | 11 |
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('.') |
