Skip to content

Commit

Permalink
older versions of windows sometimes return 127 on successful commands
Browse files Browse the repository at this point in the history
  • Loading branch information
schisamo committed Oct 28, 2011
1 parent f217996 commit 788773c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/providers/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def install_package(name,version)
Chef::Log.debug("Processing #{@new_resource} as a #{installer_type} installer.")
install_args = [cached_file(@new_resource.source, @new_resource.checksum), expand_options(unattended_installation_flags), expand_options(@new_resource.options)]
Chef::Log.info("Starting installation...this could take awhile.")
shell_out!(sprintf(install_command_template, *install_args), {:returns => [0,42]})
shell_out!(sprintf(install_command_template, *install_args), {:returns => [0,42,127]})
end

def remove_package(name, version)
Expand All @@ -135,7 +135,7 @@ def remove_package(name, version)
end
end
Chef::Log.info("Removing #{@new_resource} with uninstall command '#{uninstall_command}'")
shell_out!(uninstall_command, {:returns => [0,42]})
shell_out!(uninstall_command, {:returns => [0,42,127]})
end

private
Expand Down

0 comments on commit 788773c

Please sign in to comment.