lib/yao/resources/tenant.rb in yao-0.7.0 vs lib/yao/resources/tenant.rb in yao-0.8.0

- 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_detail(all_tenants: 1).select{|s| s.tenant_id == id } + @servers ||= Yao::Server.list(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