Skip to content

Commit

Permalink
Merge pull request #62 from jakedavis/no-print-password
Browse files Browse the repository at this point in the history
Don't log RabbitMQ passwords.
  • Loading branch information
Joshua Timberman committed Jul 16, 2013
2 parents d3c8069 + 6fc5610 commit 23baad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def user_has_permissions?(name, vhost, perm_list = nil)
# of leaning toothpicks:
new_password = new_resource.password.gsub("'", "'\\\\''")
cmdStr = "rabbitmqctl add_user #{new_resource.user} '#{new_password}'"
execute cmdStr do
Chef::Log.debug "rabbitmq_user_add: #{cmdStr}"
execute "rabbitmqctl add_user #{new_resource.user}" do
command cmdStr
Chef::Log.info "Adding RabbitMQ user '#{new_resource.user}'."
new_resource.updated_by_last_action(true)
end
Expand Down

0 comments on commit 23baad3

Please sign in to comment.