diff --git a/recipes/powershell3.rb b/recipes/powershell3.rb index fca3b3c..9775c52 100644 --- a/recipes/powershell3.rb +++ b/recipes/powershell3.rb @@ -40,7 +40,7 @@ checksum node['powershell']['powershell3']['checksum'] installer_type :custom options '/quiet /norestart' - success_codes [0, 42, 127, 3010, 2_359_302] + returns [0, 42, 127, 3010, 2_359_302] action :install # Note that the :immediately is to immediately notify the other resource, # not to immediately reboot. The windows_reboot 'notifies' does that. diff --git a/recipes/powershell4.rb b/recipes/powershell4.rb index 983727c..206a405 100644 --- a/recipes/powershell4.rb +++ b/recipes/powershell4.rb @@ -42,7 +42,7 @@ installer_type :custom options '/quiet /norestart' action :install - success_codes [0, 42, 127, 3010, 2_359_302] + returns [0, 42, 127, 3010, 2_359_302] # Note that the :immediately is to immediately notify the other resource, # not to immediately reboot. The windows_reboot 'notifies' does that. notifies :reboot_now, 'reboot[powershell]', :immediately if node['powershell']['installation_reboot_mode'] != 'no_reboot' diff --git a/recipes/powershell5.rb b/recipes/powershell5.rb index 319997a..8931e82 100644 --- a/recipes/powershell5.rb +++ b/recipes/powershell5.rb @@ -35,7 +35,7 @@ options '/quiet /norestart' timeout node['powershell']['powershell5']['timeout'] action :install - success_codes [0, 42, 127, 3010, 2_359_302] + returns [0, 42, 127, 3010, 2_359_302] # Note that the :immediately is to immediately notify the other resource, # not to immediately reboot. The windows_reboot 'notifies' does that. notifies :reboot_now, 'reboot[powershell]', :immediately if node['powershell']['installation_reboot_mode'] != 'no_reboot'