Skip to content

Commit

Permalink
Use floating_ip_address instead of name for creation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mansam committed Oct 6, 2017
1 parent 957cbc1 commit ccbfb16
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def self.raw_create_floating_ip(ext_management_system, options)
ext_management_system.with_provider_connection(connection_options(cloud_tenant)) do |service|
floating_ip = service.create_floating_ip(floating_network_id, raw_options)
end
{:ems_ref => floating_ip['id'], :name => options[:name]}
{:ems_ref => floating_ip['id'], :name => options[:floating_ip_address]}
rescue => e
_log.error "floating_ip=[#{options[:name]}], error: #{e}"
_log.error "floating_ip=[#{options[:floating_ip_address]}], error: #{e}"
raise MiqException::MiqFloatingIpCreateError, e.to_s, e.backtrace
end

Expand Down

0 comments on commit ccbfb16

Please sign in to comment.