diff options
author | Matt Wrock <matt@mattwrock.com> | 2015-09-10 22:08:51 -0700 |
---|---|---|
committer | Matt Wrock <matt@mattwrock.com> | 2015-09-10 22:08:51 -0700 |
commit | 716eb7679cd30cd0e371ea8699d5dbdb47a05169 (patch) | |
tree | 1e9f35d60137c2cc22333ee37e6dd68f16b94996 /lib/chef/dsl | |
parent | b8625814b1065da1d8e1b44523ef50ed7d8f57f0 (diff) | |
download | chef-716eb7679cd30cd0e371ea8699d5dbdb47a05169.tar.gz |
remove pending reboot check for HKLM\SOFTWARE\Microsoft\Updates\UpdateExeVolatile if not on windows 2003mwrock/reboot_pending
Diffstat (limited to 'lib/chef/dsl')
-rw-r--r-- | lib/chef/dsl/reboot_pending.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/dsl/reboot_pending.rb b/lib/chef/dsl/reboot_pending.rb index c577118dd4..3d84b29ec5 100644 --- a/lib/chef/dsl/reboot_pending.rb +++ b/lib/chef/dsl/reboot_pending.rb @@ -49,7 +49,8 @@ class Chef # The mere existence of the UpdateExeVolatile key should indicate a pending restart for certain updates # http://support.microsoft.com/kb/832475 - (registry_key_exists?('HKLM\SOFTWARE\Microsoft\Updates\UpdateExeVolatile') && + Chef::Platform.windows_server_2003? && + (registry_key_exists?('HKLM\SOFTWARE\Microsoft\Updates\UpdateExeVolatile') && !registry_get_values('HKLM\SOFTWARE\Microsoft\Updates\UpdateExeVolatile').select { |v| v[:name] == "Flags" }[0].nil? && [1,2,3].include?(registry_get_values('HKLM\SOFTWARE\Microsoft\Updates\UpdateExeVolatile').select { |v| v[:name] == "Flags" }[0][:data])) elsif platform?("ubuntu") |