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

[aws] mock fix privateDnsName generation

This commit is contained in:
geemus (Wesley Beary) 2010-04-09 13:50:04 -07:00
parent 4796e6c3f8
commit 2c3f89ce48

View file

@ -77,7 +77,7 @@ module Fog
if Time.now - instance['launchTime'] > Fog::Mock::DELAY
instance['dnsName'] = "ec2-#{Fog::AWS::Mock.ip_address.gsub('.','-')}.compute-1.amazonaws.com"
instance['privateIpAddress'] = Fog::AWS::Mock.ip_address
instance['privateDnsName'] = "ip-#{instance['privateDnsName'].gsub('.','-')}.ec2.internal"
instance['privateDnsName'] = "ip-#{instance['privateIpAddress'].gsub('.','-')}.ec2.internal"
instance['instanceState'] = { 'code' => 16, 'name' => 'running' }
end
when 'rebooting'