fix for bug 2832009, set default imagetype=NIM if not specified with chdef

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3948 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2009-08-06 01:33:14 +00:00
parent e7992be5c2
commit 4e18f2810d

View File

@ -1840,6 +1840,13 @@ sub defch
}
} # end - if type = node
#special case for osimage, if the osimage was not defined,
#chdef can not create it correctly if no attribute in osimage table is defined
#set the default imagetype 'NIM' if it is not specified
if ((!$isDefined) && ($type eq 'osimage') && (!defined($::FINALATTRS{$obj}{imagetype})))
{
$::FINALATTRS{$obj}{imagetype} = 'NIM';
}
} # end - for each object to update