RunCmd: log command line for missing cmd case
authorIustin Pop <iustin@google.com>
Mon, 4 May 2009 22:03:29 +0000 (00:03 +0200)
committerIustin Pop <iustin@google.com>
Tue, 5 May 2009 11:00:17 +0000 (13:00 +0200)
commitc803b05273f016a3dbbe626e041c6dbecb6c4263
tree737bb0e42548d438a4da9719d31a5a00cad158a7
parent572e52bf4b0da1776e7f9019d39cfc2fbdf34d22
RunCmd: log command line for missing cmd case

In case of missing programs, currently utils.RunCmd doesn't show any
information to help debugging, only 'No such file or directory'. This
patch adds error handling for the ENOENT case such that at least we have
this information in the node daemon logs.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/utils.py