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:
parent
4796e6c3f8
commit
2c3f89ce48
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue