lib/fog/openstack/models/compute/image.rb in fog-1.32.0 vs lib/fog/openstack/models/compute/image.rb in fog-1.33.0

- old
+ new

@@ -1,12 +1,12 @@ -require 'fog/core/model' +require 'fog/openstack/models/model' require 'fog/openstack/models/compute/metadata' module Fog module Compute class OpenStack - class Image < Fog::Model + class Image < Fog::OpenStack::Model identity :id attribute :name attribute :created_at, :aliases => 'created' attribute :updated_at, :aliases => 'updated' @@ -15,15 +15,9 @@ attribute :minDisk attribute :minRam attribute :server, :aliases => 'server' attribute :metadata attribute :links - - def initialize(attributes) - # Old 'connection' is renamed as service and should be used instead - prepare_service_value(attributes) - super - end def metadata @metadata ||= begin Fog::Compute::OpenStack::Metadata.new({ :service => service,