lib/yao/resources/keypair.rb in yao-0.0.5 vs lib/yao/resources/keypair.rb in yao-0.0.6

- old
+ new

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