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
This commit is contained in:
parent
81a37142af
commit
7af7f6df98
@ -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.'));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user