Package ganeti :: Package utils :: Module process :: Class RunResult
[hide private]
[frames] | no frames]

Class RunResult

source code


Holds the result of running external programs.

Instance Methods [hide private]
 
__init__(self, exit_code, signal_, stdout, stderr, cmd, timeout_action, timeout)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_GetOutput(self)
Returns the combined stdout and stderr for easier usage.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  output = property(_GetOutput, None, None, "Return full output")
Instance Variables [hide private]
int exit_code
the exit code of the program, or None (if the program didn't exit())
  fail_reason
a string detailing the termination reason
boolean failed
True in case the program was terminated by a signal or exited with a non-zero exit code
int or None signal
the signal that caused the program to finish, or None (if the program wasn't terminated by a signal)
str stderr
the standard error of the program
str stdout
the standard output of the program
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, exit_code, signal_, stdout, stderr, cmd, timeout_action, timeout)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)