From ccbfb16b853ee0044c4bdffae6bf4dd4dc07db5b Mon Sep 17 00:00:00 2001 From: Sam Lucidi Date: Fri, 6 Oct 2017 11:07:31 -0400 Subject: [PATCH] Use floating_ip_address instead of name for creation messages --- .../providers/openstack/network_manager/floating_ip.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/manageiq/providers/openstack/network_manager/floating_ip.rb b/app/models/manageiq/providers/openstack/network_manager/floating_ip.rb index 87f8acf09..68f0f16c2 100644 --- a/app/models/manageiq/providers/openstack/network_manager/floating_ip.rb +++ b/app/models/manageiq/providers/openstack/network_manager/floating_ip.rb @@ -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