Discussion:
scripts/func-command
Seth Vidal
2011-05-03 17:43:21 UTC
Permalink
scripts/func-command | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 15df8d180e85dc5244b39833e0d36c6d46ceb355
Author: Seth Vidal <skvidal-rxtnV0ftBwyoClj4AeEUq9i2O/***@public.gmane.org>
Date: Tue May 3 13:42:45 2011 -0400

when the command is not found - make it an error response - not just silence.

diff --git a/scripts/func-command b/scripts/func-command
index 632c9a5..31865c2 100755
--- a/scripts/func-command
+++ b/scripts/func-command
@@ -48,7 +48,7 @@ def main(args):
print mycmd
results = fc.command.run(mycmd)
for (hn, output) in results.items():
- if is_error(output):
+ if is_error(output) or output[0] == 127:
msg = 'Error: %s: ' % hn
for item in output[1:3]:
if type(item) == type(''):

Loading...