scripts/func | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8871d193cc946f7abc4a6ba3c35f1a0dd3ddd3ac
Author: Calen Pennington <[email protected]>
Date: Sun May 23 22:46:28 2010 -0400
Exit with the return code from command.parse
Command.parse returns a non-zero return code in a variety of
circumstances. However, the func command line script (script/func) was
ignoring that return code, and thus was hiding a number of error
conditions.
This patch uses sys.exit to return the return codes from command.parse
to the command line user.
diff --git a/scripts/func b/scripts/func
index da2f50e..7607ea8 100755
--- a/scripts/func
+++ b/scripts/func
@@ -25,7 +25,7 @@ import func.overlord.func_command as func_command
myname, argv = sys.argv[0], sys.argv[1:]
cli = func_command.FuncCommandLine()
try:
- cli.parse(argv)
+ sys.exit(cli.parse(argv))
except Func_Client_Exception, e:
print "ERROR:", e
sys.exit(1)
_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list