one minor bug for validate height for nodeimport

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14220 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
leiaibj 2012-11-02 07:41:25 +00:00
parent 05f66ec8fc
commit 78b3536bcb

View File

@ -1501,8 +1501,8 @@ sub validate_node_entry{
return "Specified unit $node_entry{$_} is a invalid number";
}
}elsif ($_ eq "height"){
if (! exists $node_entry{"chassis"}){
return "Chassis must be specified together with rack";
if (! exists $node_entry{"racl"}){
return "Height must be specified together with rack";
}
# Not a valid number.
if (!($node_entry{$_} =~ /^\d+$/)){