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

Expose elastic ip's private_ip_address

This commit is contained in:
KevinLoiseau 2018-01-17 13:59:55 +01:00
parent 77c4b1e3d2
commit a337a868a9
No known key found for this signature in database
GPG key ID: 1980A300C3CF754A
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@ module Fog
class Address < Fog::Model class Address < Fog::Model
identity :public_ip, :aliases => 'publicIp' identity :public_ip, :aliases => 'publicIp'
attribute :private_ip_address, :aliases => 'privateIpAddress'
attribute :allocation_id, :aliases => 'allocationId' attribute :allocation_id, :aliases => 'allocationId'
attribute :association_id, :aliases => 'associationId' attribute :association_id, :aliases => 'associationId'
attribute :server_id, :aliases => 'instanceId' attribute :server_id, :aliases => 'instanceId'

View file

@ -10,7 +10,7 @@ module Fog
def end_element(name) def end_element(name)
case name case name
when 'instanceId', 'publicIp', 'domain', 'allocationId', 'associationId', 'networkInterfaceId', 'networkInterfaceOwnerId' when 'instanceId', 'publicIp', 'domain', 'allocationId', 'associationId', 'networkInterfaceId', 'networkInterfaceOwnerId', 'privateIpAddress'
@address[name] = value @address[name] = value
when 'item' when 'item'
@response['addressesSet'] << @address @response['addressesSet'] << @address