Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
rabbitmq
Commits
4ceb30a0
Unverified
Commit
4ceb30a0
authored
May 22, 2019
by
Michael Klishin
Browse files
Fix a typo introduced in
208afbcf
parent
7397f5d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
providers/user.rb
View file @
4ceb30a0
...
...
@@ -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
}
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment