mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-09 21:10:15 +00:00
fix bug 3412808: mkhwconn need do option check for -t
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10602 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@@ -232,7 +232,11 @@ sub mkhwconn_parse_args
|
||||
$ppctab->close();
|
||||
#$nodetypetab->close();
|
||||
$vpdtab->close();
|
||||
|
||||
|
||||
if ( scalar( @ARGV)) {
|
||||
return(usage( "No additional flag is support by this command" ));
|
||||
}
|
||||
|
||||
$request->{method} = 'mkhwconn';
|
||||
return( \%opt);
|
||||
}
|
||||
|
@@ -187,6 +187,11 @@ sub mkhwconn_parse_args
|
||||
return( usage('Wrong value of --port option. The value can be 0 or 1, and the default value is 0.'));
|
||||
}
|
||||
$request->{method} = 'mkhwconn';
|
||||
|
||||
if ( scalar( @ARGV)) {
|
||||
return(usage( "No additional flag is support by this command" ));
|
||||
}
|
||||
|
||||
return( \%opt);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user