Skip to content

Commit f96b884

Browse files
author
JJ Asghar
committed
Merge pull request #215 from fnicholas/master
changed regex behavior for guard command on set user permission resource
2 parents df4c8e3 + 45c4801 commit f96b884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def user_has_tag?(name, tag)
5454
# empty perm_list means we're checking for any permissions
5555
def user_has_permissions?(name, vhost, perm_list = nil) # rubocop:disable all
5656
vhost = '/' if vhost.nil? # rubocop:enable all
57-
cmd = "rabbitmqctl -q list_user_permissions #{name} | grep \"^#{vhost}\\b\""
57+
cmd = "rabbitmqctl -q list_user_permissions #{name} | grep \"^#{vhost}\\s\""
5858
cmd = Mixlib::ShellOut.new(cmd)
5959
cmd.environment['HOME'] = ENV.fetch('HOME', '/root')
6060
cmd.run_command

0 commit comments

Comments
 (0)