Exit rscan() if given node is not a HCP.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9670 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2011-05-24 14:48:59 +00:00
parent fb61cb5edb
commit d324bea42a

View File

@ -1330,6 +1330,12 @@ sub scanVM {
xCAT::zvmUtils->printLn( $callback, "$node: (Error) Missing node ID" );
return;
}
# Exit if node is not a HCP
if ( !( $hcp =~ m/$node./i ) ) {
xCAT::zvmUtils->printLn( $callback, "$node: (Error) $node is not a hardware control point" );
return;
}
# Print output string
# [Node name]: