scripts/func

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 scripts/func |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8871d193cc946f7abc4a6ba3c35f1a0dd3ddd3ac
Author: Calen Pennington <cpennington@xxxxxxxx>
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
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux