Unverified Commit 16bcd772 authored by Michael Klishin's avatar Michael Klishin Committed by Michael Klishin

Merge pull request #561 from ramereth/ramereth/plugin-umask-fix-5.x

Fix Chef 16 issue with plugin resource

(cherry picked from commit 70fa62fe)
parent 745c8179
......@@ -35,7 +35,7 @@ end
action :enable do
unless plugin_enabled?(new_resource.plugin)
execute "rabbitmq-plugins enable #{new_resource.plugin}" do
umask 0022
umask '0022'
Chef::Log.info "Enabling RabbitMQ plugin '#{new_resource.plugin}'."
environment shell_environment.merge(
'PATH' => "#{ENV['PATH']}:/usr/lib/rabbitmq/bin"
......@@ -48,7 +48,7 @@ end
action :disable do
if plugin_enabled?(new_resource.plugin)
execute "rabbitmq-plugins disable #{new_resource.plugin}" do
umask 0022
umask '0022'
Chef::Log.info "Disabling RabbitMQ plugin '#{new_resource.plugin}'."
environment shell_environment.merge(
'PATH' => "#{ENV['PATH']}:/usr/lib/rabbitmq/bin"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment