diff --git a/perl-xCAT/xCAT/PPCconn.pm b/perl-xCAT/xCAT/PPCconn.pm index 71d935911..19c36bfd2 100644 --- a/perl-xCAT/xCAT/PPCconn.pm +++ b/perl-xCAT/xCAT/PPCconn.pm @@ -98,6 +98,12 @@ sub mkhwconn_parse_args { push @no_type_nodes, $node; next; + } else + { + unless ( $nodetype =~ /^(fsp|bpa|frame|cec|hmc)$/) + { + return ( usage("Node type is incorrect. \n")); + } } if ( $nodetype eq 'fsp' )