Unverified Commit 57f95121 authored by Hervé Werner's avatar Hervé Werner
Browse files

Fix backslash handling on permissions

Fixes #565
parent 06ff4148
......@@ -82,7 +82,7 @@ def user_has_expected_permissions?(name, vhost, perm_list = nil)
return true
# existing match search
if perm_list == cmd.stdout.split.drop(1)
if perm_list == %(\"#{cmd.stdout}\").undump.split.drop(1)
Chef::Log.debug 'rabbitmq_user_has_expected_permissions?: matching permissions already found'
return true
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