diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index c4076600d..f1f21310a 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -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);