[Kimchi-devel] [PATCH] Return info from run_command on exception.

Crístian Viana vianac at linux.vnet.ibm.com
Fri May 2 14:23:30 UTC 2014


Reviewed-by: Crístian Viana <vianac at linux.vnet.ibm.com>

On 01-05-2014 16:29, Christy Perez wrote:
>      As a follow-up from the discussion here:
>      http://lists.ovirt.org/pipermail/kimchi-devel/2014-April/004600.html
>      run_command needs to be updated to return some indication
>      to the caller that a command did not complete. Currently,
>      if there is an exception (e.g. the command does not exist),
>      None is returned for the output, the error output, and
>      the return code.
>
>      msg is already created, but only printed to the log/console,
>      so return that as the error message. Return -1 for the rc, which
>      could be, depending on the command passed, an ignorable error
>      code. Having some indication of a problem is better than None,
>      though.
>
> Signed-off-by: Christy Perez <christy at linux.vnet.ibm.com>




More information about the Kimchi-devel mailing list