Method: Fog::Image::OpenStack::V2::Images#find_attribute

Defined in:
lib/fog/image/openstack/v2/models/images.rb

#find_attribute(attribute, value) ⇒ Object



58
59
60
61
# File 'lib/fog/image/openstack/v2/models/images.rb', line 58

def find_attribute(attribute, value)
  attribute = attribute.to_s.gsub("find_by_", "")
  load(service.list_images(attribute.to_sym => value).body['images'])
end