fix bug 3552543 and 3442549, the FB->getmacs <noderange> cannot work

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13376 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-07-31 14:08:09 +00:00
parent 14e605511d
commit ada63f1faf

View File

@ -3615,9 +3615,11 @@ sub preprocess_request {
next;
} elsif ($arg =~ /^-i$/) {
my $int = shift @args;
if (defined($int) && $int =~ /^[eth|en]\d$/) {
if (defined($int) && $int =~ /^(eth|en)\d$/) {
next;
}
} elsif ($arg eq '') {
next;
}
$usage_string= ":Error arguments\n";
$usage_string .=xCAT::Usage->getUsage($command);