Skip to content

Commit

Permalink
Merge pull request #544 from KarolisL/patch-1
Browse files Browse the repository at this point in the history
Simplify "all_vhosts" in rabbitmq_queue provider
  • Loading branch information
hunner committed Aug 10, 2017
2 parents 5ac45de + fd70605 commit 8fe7d1f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/puppet/provider/rabbitmq_queue/rabbitmqadmin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ def should_vhost
end

def self.all_vhosts
vhosts = []
rabbitmqctl('list_vhosts', '-q').split(/\n/).collect do |vhost|
vhosts.push(vhost)
end
vhosts
rabbitmqctl('list_vhosts', '-q').split(/\n/)
end

def self.all_queues(vhost)
Expand Down

0 comments on commit 8fe7d1f

Please sign in to comment.