# File lib/fog/profitbricks/requests/compute/update_image.rb, line 68 def update_image(image_id, options = {}) if img = data[:images]["items"].find do |image| image["id"] == image_id end img['licenceType'] = options[:licenceType] options.each do |key, value| img[key.to_s] = value end else raise Excon::Error::HTTPStatus, "The requested resource could not be found" end response = Excon::Response.new response.status = 202 response.body = img response end