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:
parent
e53107f707
commit
5f525c97d9
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user