Merge pull request #2774 from trobrock/add-private-ip

Add a private IP by default to the openstack server mock
This commit is contained in:
Kyle Rames 2014-03-18 11:50:20 -05:00
commit c9dfbd5b4d
1 changed files with 1 additions and 1 deletions

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"}]},