parallels_utils: Check return status properly from virCommandRun()

This commit is contained in:
John Ferlan 2013-01-23 17:04:48 -05:00 committed by Michal Privoznik
parent 96e8565de6
commit 08cb0433c5

View File

@ -42,7 +42,7 @@ parallelsDoCmdRun(char **outbuf, const char *binary, va_list list)
if (outbuf)
virCommandSetOutputBuffer(cmd, outbuf);
if (virCommandRun(cmd, NULL))
if (virCommandRun(cmd, NULL) < 0)
goto cleanup;
ret = 0;