fix bugs item 3366218

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10105 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2011-07-18 08:34:26 +00:00
parent 354fb6739b
commit b87bc28e1c

View File

@ -78,7 +78,7 @@ sub mkhwconn_parse_args
return( usage('Flags -t and -p cannot be used together.'));
}
if ( exists $opt{P} and ! exists $opt{p})
if ( (exists $opt{P} or grep(/^(-P)$/, @$args)) and !exists $opt{p})
{
return( usage('Flags -P can only be used when flag -p is specified.'));
}