From c40b974182c7e455cee9511a349ff4a47a145e4c Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 17 Apr 2013 18:38:22 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/perl/xCAT/Template.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index ecfe1aec1..4ef8242ef 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -484,7 +484,7 @@ sub get_win_prodkey { $keyent = $keytab->getAttribs({product=>$osvariant},"key"); } } - if ($keyent) { + if ($keyent and $keyent->{key}) { return "OnError".$keyent->{key}.""; } if ($xCAT::WinUtils::kmskeymap{$osvariant}) {