Unverified Commit 4ceb30a0 authored by Michael Klishin's avatar Michael Klishin
Browse files

Fix a typo introduced in 208afbcf

parent 7397f5d7
......@@ -144,7 +144,7 @@ action :clear_permissions do
vhosts = new_resource.vhost.is_a?(Array) ? new_resource.vhost : [new_resource.vhost]
# filter out vhosts for which the user already has the permissions we expect
filtered = vhosts.reject { |vhost| user_has_expected_permissions?(new_resource.user, vhost, perm_list) }
filtered = vhosts.reject { |vhost| user_has_expected_permissions?(new_resource.user, vhost) }
filtered.each do |vhost|
vhostopt = "-p #{vhost}" unless vhost.nil?
cmd = "rabbitmqctl -q clear_permissions #{vhostopt} #{new_resource.user}"
......
Supports Markdown
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