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:
zhaoertao 2011-09-22 08:50:06 +00:00
parent e53107f707
commit 5f525c97d9
2 changed files with 10 additions and 1 deletions

View File

@ -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);
}

View File

@ -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);
}