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

[aws] mock instance should get dnsName when transitioning to running

This commit is contained in:
geemus (Wesley Beary) 2010-04-09 10:00:21 -07:00
parent f6563193e5
commit 1dae004587

View file

@ -75,6 +75,7 @@ module Fog
case instance['instanceState']['name']
when 'pending'
if Time.now - instance['launchTime'] > Fog::Mock::DELAY
instance['dnsName'] = Fog::AWS::Mock.ip_address
instance['instanceState'] = { 'code' => 16, 'name' => 'running' }
end
when 'rebooting'