1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Add a private IP by default to the openstack server mock

This commit is contained in:
Trae Robrock 2014-03-18 08:45:41 -07:00
parent 3eed59332d
commit 1fda348e5c

View file

@ -108,7 +108,7 @@ module Fog
end
mock_data = {
'addresses' => {},
'addresses' => {"Private" => [{"addr" => Fog::Mock.random_ip }]},
'flavor' => {"id" => flavor_ref, "links"=>[{"href"=>"http://nova1:8774/admin/flavors/1", "rel"=>"bookmark"}]},
'id' => server_id,
'image' => {"id" => image_ref, "links"=>[{"href"=>"http://nova1:8774/admin/images/#{image_ref}", "rel"=>"bookmark"}]},