lib/yao/resources/tenant.rb in yao-0.2.5 vs lib/yao/resources/tenant.rb in yao-0.2.6
- old
+ new
@@ -11,10 +11,10 @@
def servers
@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})
+ @meters ||= Yao::Meter.list({'q.field' => 'project_id', 'q.op' => 'eq', 'q.value' => id})
end
def meters_by_name(meter_name)
meters.select{|m| m.name == meter_name}
end