Unverified Commit 70fa62fe authored by Michael Klishin's avatar Michael Klishin Committed by GitHub

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

Fix Chef 16 issue with plugin resource
parents 1fe409b3 9c061c07
......@@ -39,7 +39,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"
......@@ -52,7 +52,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