Fix problem where KMS key not being used as default

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16014 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-04-17 18:38:31 +00:00
parent 2c5ce1a401
commit ab3b74fef4

View File

@ -484,7 +484,7 @@ sub get_win_prodkey {
$keyent = $keytab->getAttribs({product=>$osvariant},"key");
}
}
if ($keyent) {
if ($keyent and $keyent->{key}) {
return "<ProductKey><WillShowUI>OnError</WillShowUI><Key>".$keyent->{key}."</Key></ProductKey>";
}
if ($xCAT::WinUtils::kmskeymap{$osvariant}) {