1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
This commit is contained in:
Erik Mackdanz 2014-02-24 11:00:20 -06:00
parent 640dbd4c71
commit f37507c9c2
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ module Fog
server = data[:servers][server_id]
server["addresses"]['mocknet'] ||= []
ip_hash = {"OS-EXT-IPS-MAC:mac_addr"=>"fa:16:3e:85:47:40", "version"=>4, "addr"=>ip_address.fixed_ip_address, "OS-EXT-IPS:type"=>"floating"}
ip_hash = {"OS-EXT-IPS-MAC:mac_addr"=>"fa:16:3e:85:47:40", "version"=>4, "addr"=>ip_address, "OS-EXT-IPS:type"=>"floating"}
server["addresses"]['mocknet'] << ip_hash
response = Excon::Response.new

View file

@ -17,7 +17,7 @@ Shindo.tests("Fog::Compute[:openstack] | server", ['openstack']) do
-000000000000',
:fixed_ip_address => '192.168.11.3')
server.associate_address(ip1)
server.associate_address(ip1.fixed_ip_address)
server.reload
returns( ["192.168.11.3"] ) { server.floating_ip_addresses }