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:
parent
fb61cb5edb
commit
d324bea42a
@ -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]:
|
||||
|
Loading…
Reference in New Issue
Block a user