Skip to content

Commit

Permalink
Merge pull request #237 from kramvan1/password_in_log
Browse files Browse the repository at this point in the history
don't put change password in log
  • Loading branch information
JJ Asghar committed Mar 3, 2015
2 parents 5a40ffd + 7642954 commit 7dc4783
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ def user_has_permissions?(name, vhost, perm_list = nil) # rubocop:disable all
action :change_password do
if user_exists?(new_resource.user)
cmd = "rabbitmqctl change_password #{new_resource.user} #{new_resource.password}"
execute cmd do
execute "rabbitmqctl change_password #{new_resource.user}" do # ~FC009
sensitive true
comand cmd
Chef::Log.debug "rabbitmq_user_change_password: #{cmd}"
Chef::Log.info "Editing RabbitMQ user '#{new_resource.user}'."
end
Expand Down

0 comments on commit 7dc4783

Please sign in to comment.