lib/cloudstack-nagios/helper.rb in cloudstack-nagios-0.1.3 vs lib/cloudstack-nagios/helper.rb in cloudstack-nagios-0.2.0

- old
+ new

@@ -4,14 +4,10 @@ templ = File.read(File.join(File.dirname(__FILE__), "templates", name)) Erubis::Eruby.new(templ) end def routers - routers = client.list_routers - projects = client.list_projects - projects.each do |project| - routers = routers + client.list_routers({projectid: project['id']}) - end - routers + routers = client.list_routers + routers += client.list_routers(projectid: -1) end end end