handle the not initialized warning msg in bypass mode, ref defect 2781882

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3260 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2009-04-27 03:06:42 +00:00
parent eabfc7ae23
commit 94ba6c8119

View File

@ -50,7 +50,10 @@ sub build_line {
my $node=shift;
my $domain=shift;
my $othernames=shift;
my @o_names=split(/,| /, $othernames);
my @o_names=();
if (defined $othernames) {
@o_names=split(/,| /, $othernames);
}
my $longname;
foreach (@o_names) {
if (($_ eq $node) || ( $domain && ($_ eq "$node.$domain"))) {
@ -87,7 +90,8 @@ sub process_request {
# parse the options
if ($req && $req->{arg}) {@ARGV = @{$req->{arg}};}
else { @ARGV = (); }
print "argv=@ARGV\n";
# print "argv=@ARGV\n";
if(!GetOptions(
'h|help' => \$HELP,
'n' => \$REMOVE,