From 354607e2102e036e2de710e7add20be78e98503f Mon Sep 17 00:00:00 2001 From: Ladislav Smola Date: Tue, 9 Dec 2014 10:34:43 +0100 Subject: [PATCH] Enhance images details call by query The images.details method needs to support the query parameter. There is no other way how to pass the query into the images collection. --- lib/fog/openstack/models/image/images.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/openstack/models/image/images.rb b/lib/fog/openstack/models/image/images.rb index c0121e3fe..374959fc7 100644 --- a/lib/fog/openstack/models/image/images.rb +++ b/lib/fog/openstack/models/image/images.rb @@ -11,8 +11,8 @@ module Fog load(service.list_public_images_detailed.body['images']) end - def details - load(service.list_public_images_detailed.body['images']) + def details(attribute=nil, query=nil) + load(service.list_public_images_detailed(attribute, query).body['images']) end def find_by_id(id)