From 7af7f6df9803c3bf9c139d2919f6e4863e68ec62 Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 10 Feb 2011 09:06:54 +0000 Subject: [PATCH] lshwconn/mkhwconn/rmhwconn support's -T option default value is lpar git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8812 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPconn.pm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/perl-xCAT/xCAT/FSPconn.pm b/perl-xCAT/xCAT/FSPconn.pm index 7c1c3d28b..30a5e855a 100644 --- a/perl-xCAT/xCAT/FSPconn.pm +++ b/perl-xCAT/xCAT/FSPconn.pm @@ -185,7 +185,8 @@ sub mkhwconn_parse_args if( ! exists $opt{T} ) { - return( usage('Missing -T option. The value can be lpar or fnm.')); + $opt{T} = "lpar"; #defaut value is lpar. + #return( usage('Missing -T option. The value can be lpar or fnm.')); } if( $opt{T} eq "lpar") { @@ -193,7 +194,7 @@ sub mkhwconn_parse_args } elsif($opt{T} eq "fnm") { $opt{T} = 1; } else { - return( usage('Wrong value of -T option. The value can be lpar or fnm.')); + return( usage('Wrong value of -T option. The value can be lpar or fnm. The defaut value is lpar.')); } if( ! exists $opt{port} ) @@ -287,7 +288,8 @@ sub lshwconn_parse_args if( ! exists $opt{T} ) { - return( usage('Missing -T option. The value can be lpar or fnm.')); + $opt{T} = "lpar"; #defaut value is lpar. + #return( usage('Missing -T option. The value can be lpar or fnm.')); } if( $opt{T} eq "lpar") { @@ -295,7 +297,7 @@ sub lshwconn_parse_args } elsif($opt{T} eq "fnm") { $opt{T} = 1; } else { - return( usage('Wrong value of -T option. The value can be lpar or fnm.')); + return( usage('Wrong value of -T option. The value can be lpar or fnm. The defaut value is lpar.')); } @@ -383,7 +385,8 @@ sub rmhwconn_parse_args if( ! exists $opt{T} ) { - return( usage('Missing -T option. The value can be lpar or fnm.')); + $opt{T} = "lpar"; #defaut value is lpar. + #return( usage('Missing -T option. The value can be lpar or fnm.')); } if( $opt{T} eq "lpar") { @@ -391,7 +394,7 @@ sub rmhwconn_parse_args } elsif($opt{T} eq "fnm") { $opt{T} = 1; } else { - return( usage('Wrong value of -T option. The value can be lpar or fnm.')); + return( usage('Wrong value of -T option. The value can be lpar or fnm. The default value is lpar.')); }