From f71da103cfbb3be9beb5f7a3d9235c35c31c56c3 Mon Sep 17 00:00:00 2001 From: yinle Date: Sun, 20 Mar 2011 06:07:39 +0000 Subject: [PATCH] Fix bug Cleanup 3203055: mkwhconn/rmhwconn error message with FSP node . git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9106 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPconn.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/perl-xCAT/xCAT/FSPconn.pm b/perl-xCAT/xCAT/FSPconn.pm index 72d2dae68..90a3a2904 100644 --- a/perl-xCAT/xCAT/FSPconn.pm +++ b/perl-xCAT/xCAT/FSPconn.pm @@ -138,6 +138,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' or $nodetype eq 'cec') and