Skip to content

Commit

Permalink
Merge pull request #1 from joshcoughlan/patch-1
Browse files Browse the repository at this point in the history
Update user.rb
  • Loading branch information
rathboma committed May 13, 2014
2 parents 22b1560 + faf6e02 commit 5763099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def user_has_tag?(name, tag)
# empty perm_list means we're checking for any permissions
def user_has_permissions?(name, vhost, perm_list = nil)
vhost = '/' if vhost.nil?
cmd = "rabbitmqctl -q list_user_permissions #{name} | grep \"^#{vhost}\\b\""
cmd = "rabbitmqctl -q list_user_permissions #{name} | grep \"^#{vhost}\\s\""
cmd = Mixlib::ShellOut.new(cmd)
cmd.environment['HOME'] = ENV.fetch('HOME', '/root')
cmd.run_command
Expand Down

0 comments on commit 5763099

Please sign in to comment.