lib/yao/resources/tenant.rb in yao-0.2.4 vs lib/yao/resources/tenant.rb in yao-0.2.5

- old
+ new

@@ -7,10 +7,10 @@ self.resources_name = "tenants" self.admin = true self.return_single_on_querying = true def servers - @servers ||= Yao::Server.list(all_tenants: 1).select{|s| s.tenant_id == id } + @servers ||= Yao::Server.list_detail(all_tenants: 1).select{|s| s.tenant_id == id } end def meters @meters ||= Yao::Meter.list({'q.field': 'project_id', 'q.op': 'eq', 'q.value': id}) end