Skip to content

Commit

Permalink
Add filtering of image attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
andyvesel committed Sep 10, 2018
1 parent 8095f69 commit 4e64438
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def self.create_image(ext_management_system, create_options)

def raw_update_image(options)
ext_management_system.with_provider_connection(:service => 'Image') do |service|
image_attrs = self.attributes
options = options.select { |k| image_attrs.has_key?(k) }
service.images.find_by_id(ems_ref).update(options)
end
rescue => err
Expand Down

0 comments on commit 4e64438

Please sign in to comment.