lib/chef/knife/openstack_server_create.rb in knife-openstack-1.0.0 vs lib/chef/knife/openstack_server_create.rb in knife-openstack-1.1.0
- old
+ new
@@ -107,10 +107,10 @@
port_id = @service.network.list_ports[:body]['ports'].find {|x| x['fixed_ips'][0]['ip_address'] == bind_ip}['id']
fixed_ip_address = service.network.list_ports[:body]["ports"].find {|x| x['id'] == port_id}['fixed_ips'][0]["ip_address"]
floating_ip_id = get_floating_ip_id(floating_address)
# Associate the floating ip via the neutron/network api
- @service.network.associate_floating_ip(floating_ip_id, port_id, options = {:fixed_ip_address => fixed_ip_address })
+ @service.network.associate_floating_ip(floating_ip_id, port_id, {:fixed_ip_address => fixed_ip_address })
#a bit of a hack, but server.reload takes a long time
(server.addresses['public'] ||= []) << {"version"=>4,"addr"=>floating_address}
msg_pair("Floating IP Address", floating_address)
end