Skip to content

Commit

Permalink
exists / channel-info needs additional rescue in Chef 0.10.10
Browse files Browse the repository at this point in the history
  • Loading branch information
djoos committed Jun 6, 2012
1 parent 42189e5 commit 39b0e49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/pear_channel.rb
Expand Up @@ -84,6 +84,8 @@ def exists?
shell_out!("pear channel-info #{@current_resource.channel_name}")
true
rescue Chef::Exceptions::ShellCommandFailed
rescue Mixlib::ShellOut::ShellCommandFailed
rescue NameError
false
end
end

0 comments on commit 39b0e49

Please sign in to comment.