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:
parent
e7992be5c2
commit
4e18f2810d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user