Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f284e1

Browse files
committed
Changes to ensure cookbook works in both 0.10.8 and 0.10.10.
rescue Mixlib::ShellOut::ShellCommandFailed is new in 0.10.10 rescue Chef::Exceptions::ShellCommandFailed is required by 0.10.8 rescue NameError handles the missing Mixlib::etc for 0.10.8.
1 parent bb17707 commit 9f284e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

providers/pip.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ def current_installed_version
127127
p = shell_out!(version_check_cmd)
128128
p.stdout.split(delimeter)[1].strip
129129
rescue Chef::Exceptions::ShellCommandFailed
130+
rescue Mixlib::ShellOut::ShellCommandFailed
131+
rescue NameError
130132
end
131133
end
132134

0 commit comments

Comments
 (0)