lib/fog/hp/models/network/floating_ip.rb in fog-1.22.0 vs lib/fog/hp/models/network/floating_ip.rb in fog-1.22.1
- old
+ new
@@ -1,11 +1,10 @@
require 'fog/core/model'
module Fog
module HP
class Network
-
class FloatingIp < Fog::Model
identity :id
attribute :floating_network_id
attribute :port_id
@@ -36,10 +35,9 @@
requires :floating_network_id
raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted?
merge_attributes(service.create_floating_ip(floating_network_id, attributes).body['floatingip'])
true
end
-
end
end
end
end