Skip to content

Commit

Permalink
Merge pull request #287 from erhudy/master
Browse files Browse the repository at this point in the history
User tag changes for <=3.3.4
  • Loading branch information
cmurphy committed Jan 14, 2015
2 parents 4657e57 + 247b6e0 commit da9c7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/rabbitmq_user/rabbitmqctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ def get_user_tags
match = rabbitmqctl('-q', 'list_users').split(/\n/).collect do |line|
line.match(/^#{Regexp.escape(resource[:name])}\s+\[(.*?)\]/)
end.compact.first
Set.new(match[1].split(/, /)) if match
Set.new(match[1].split(' ').map{|x| x.gsub(/,$/, '')}) if match
end
end

0 comments on commit da9c7a8

Please sign in to comment.