From 51d77e198cdec26a618ad873fd939a131a0d4eae Mon Sep 17 00:00:00 2001 From: zhaoertao <zhaoertao@8638fb3e-16cb-4fca-ae20-7b5d299a9bcd> Date: Tue, 31 Jul 2012 14:09:50 +0000 Subject: [PATCH] fix bug 3552543 and 3442549, the FB->getmacs <noderange> cannot work git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13377 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 99439be00..e6fbcecd7 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -3660,9 +3660,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);