lib/yao/resources/keypair.rb in yao-0.2.0 vs lib/yao/resources/keypair.rb in yao-0.2.1

- old
+ new

@@ -5,9 +5,11 @@ self.service = "compute" self.resource_name = "os-keypair" self.resources_name = "os-keypairs" def self.list(query={}) - return_resources(GET(resources_name, query).body[resources_name_in_json].map{|r| r[resource_name_in_json] }) + return_resources( + resources_from_json(GET(resources_name, query).body).map{|r| resource_params(r)} + ) end end end