Fix problem where KMS key not being used as default

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16013 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-04-17 18:38:22 +00:00
parent 3375666c53
commit c40b974182

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}) {