diff options
| author | Soren Hansen <soren.hansen@rackspace.com> | 2010-10-04 22:32:00 +0200 |
|---|---|---|
| committer | Soren Hansen <soren.hansen@rackspace.com> | 2010-10-04 22:32:00 +0200 |
| commit | bdbca3bc8f2c0503915017c72f20c2bc4210ead5 (patch) | |
| tree | 359e3a3d01b546e28623647d3d317fc3118bd952 /nova/utils.py | |
| parent | 6805d7d4a03b977ca7ef99da2a59a486672d8995 (diff) | |
| parent | 44d9fac26aff296f2846b00df98ddaf646c52158 (diff) | |
Merge trunk.
Diffstat (limited to 'nova/utils.py')
| -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('.') |
