mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
fix association setter in associate_address
This commit is contained in:
parent
310373bd66
commit
e438e1b318
1 changed files with 3 additions and 3 deletions
|
@ -36,10 +36,10 @@ else
|
|||
def associate_address(instance_id, public_ip)
|
||||
response = Fog::Response.new
|
||||
response.status = 200
|
||||
address = Fog::AWS::EC2.data[:addresses][public_ip]
|
||||
instance = Fog::AWS::EC2.data[:instances][instance_id]
|
||||
if address && instance
|
||||
instance['instanceId'] = instance_id
|
||||
address = Fog::AWS::EC2.data[:addresses][public_ip]
|
||||
if instance && address
|
||||
address['instanceId'] = instance_id
|
||||
response.status = 200
|
||||
response.body = {
|
||||
'requestId' => Fog::AWS::Mock.request_id,
|
||||
|
|
Loading…
Add table
Reference in a new issue