From ada63f1faf357fc4ded31a4b1052802fa3cf43d7 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Tue, 31 Jul 2012 14:08:09 +0000 Subject: [PATCH] fix bug 3552543 and 3442549, the FB->getmacs cannot work git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13376 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 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);