From e31e02650d7f93b773234b7f5e30f9e116958722 Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 24 Aug 2012 01:39:39 +0000 Subject: [PATCH] minor fix: remove the restriction of flag -t; modify hmc service type of slp request. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13598 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index faebddc88..6fe16ca15 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -293,7 +293,7 @@ sub parse_args { if ( exists( $opt{t} )) { $globalopt{maxtries} = $opt{t}; - if ( $globalopt{maxtries} !~ /^0?[1-9]$/ ) { + if ( $globalopt{maxtries} !~ /^\d+$/ ) { return( usage( "Invalid command tries (1-9)" )); } } @@ -498,7 +498,7 @@ sub invoke_dodiscover { } #efix for hmc bug if ($services =~ /hardware-management-console/) { - $services = [WILDCARD_SERVICE,HARDWARE_SERVICE,SOFTWARE_SERVICE]; + $services = [SOFTWARE_SERVICE]; } if ($globalopt{maxtries}) {