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