fix for now parms on sinv SF defect 2486965

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2558 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2009-01-05 15:00:54 +00:00
parent 84615754a1
commit 42908ab23b

View File

@ -82,6 +82,14 @@ sub parse_and_run_sinv
my $rc = 0;
$::CALLBACK = $callback;
my $args = $request->{arg};
if (!($args)) {
my $rsp = {};
$rsp->{data}->[0] =
"No arguments have been supplied to the sinv command. Check the sinv man page for appropriate input. \n";
xCAT::MsgUtils->message("E", $rsp, $callback);
exit 1;
}
@ARGV = @{$args}; # get arguments
my %options = ();
$Getopt::Long::ignorecase = 0; #Checks case in GetOptions