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:
parent
f6563193e5
commit
1dae004587
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ module Fog
|
||||||
case instance['instanceState']['name']
|
case instance['instanceState']['name']
|
||||||
when 'pending'
|
when 'pending'
|
||||||
if Time.now - instance['launchTime'] > Fog::Mock::DELAY
|
if Time.now - instance['launchTime'] > Fog::Mock::DELAY
|
||||||
|
instance['dnsName'] = Fog::AWS::Mock.ip_address
|
||||||
instance['instanceState'] = { 'code' => 16, 'name' => 'running' }
|
instance['instanceState'] = { 'code' => 16, 'name' => 'running' }
|
||||||
end
|
end
|
||||||
when 'rebooting'
|
when 'rebooting'
|
||||||
|
|
Loading…
Add table
Reference in a new issue