From d3dac14addc5512e03bbdd554fd8c13620753e5b Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 19 Apr 2011 07:03:38 +0000 Subject: [PATCH] Fixed a rbootseq error which forked thousands of rbootseq processes. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9343 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPbootseq.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/perl-xCAT/xCAT/FSPbootseq.pm b/perl-xCAT/xCAT/FSPbootseq.pm index 37a6be106..7b2346508 100644 --- a/perl-xCAT/xCAT/FSPbootseq.pm +++ b/perl-xCAT/xCAT/FSPbootseq.pm @@ -81,11 +81,11 @@ sub parse_args { } if( $ARGV[0] =~/^hfi$/) { - $opt{hfi} = 1; - } - - if( $ARGV[0] =~/^net$/) { - $opt{net} = 1; + $opt{hfi} = 1; + } elsif ( $ARGV[0] =~/^net$/) { + $opt{net} = 1; + } else { + return(usage( "Invalid Argument: $ARGV[0]" )); } shift @ARGV;