From 5ddb39f20f219d5c18fca855957cb09f44b37ee5 Mon Sep 17 00:00:00 2001 From: nott Date: Fri, 7 Mar 2008 20:37:33 +0000 Subject: [PATCH] Fixed error code return and GetOpts option. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@727 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/xcat2nim.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/xcat2nim.pm b/xCAT-server-2.0/lib/xcat/plugins/xcat2nim.pm index 79afa9058..f5ab1960e 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/xcat2nim.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/xcat2nim.pm @@ -105,7 +105,9 @@ sub process_request $rsp->{data}->[0] = $msg; $::callback->($rsp); } - return $ret; + if ($ret > 0) { + $rsp->{errorcode}->[0] = $ret; + } } #---------------------------------------------------------------------------- @@ -140,6 +142,7 @@ sub processArgs @ARGV = @{$::args}; # parse the options + Getopt::Long::Configure("no_pass_through"); if ( !GetOptions( 'all|a' => \$::opt_a,