Grouped /^(fsp|lpar)$/ in regexp

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1100 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sakolish 2008-04-16 18:05:54 +00:00
parent fbe2127538
commit 55ffffed5c

View File

@ -22,8 +22,8 @@ sub parse_args {
# Responds with usage statement
#############################################
local *usage = sub {
my $usage_string=xCAT::Usage->getUsage($command);
return( [ $_[0], $usage_string]);
my $usage_string = xCAT::Usage->getUsage($command);
return( [ $_[0], $usage_string] );
};
#############################################
# Process command-line arguments
@ -222,7 +222,7 @@ sub temp {
#################################
# Temperatures not available
#################################
if ( @$d[4] !~ /^fsp|lpar$/ ) {
if ( @$d[4] !~ /^(fsp|lpar)$/ ) {
my $text = "$prefix Only available for CEC/LPAR";
push @result, [$name,$text,1];
next;