We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df4c8e3 + 45c4801 commit f96b884Copy full SHA for f96b884
providers/user.rb
@@ -54,7 +54,7 @@ def user_has_tag?(name, tag)
54
# empty perm_list means we're checking for any permissions
55
def user_has_permissions?(name, vhost, perm_list = nil) # rubocop:disable all
56
vhost = '/' if vhost.nil? # rubocop:enable all
57
- cmd = "rabbitmqctl -q list_user_permissions #{name} | grep \"^#{vhost}\\b\""
+ cmd = "rabbitmqctl -q list_user_permissions #{name} | grep \"^#{vhost}\\s\""
58
cmd = Mixlib::ShellOut.new(cmd)
59
cmd.environment['HOME'] = ENV.fetch('HOME', '/root')
60
cmd.run_command
0 commit comments