From a337a868a97f20bfbab8c07427304d5860b47a7c Mon Sep 17 00:00:00 2001 From: KevinLoiseau Date: Wed, 17 Jan 2018 13:59:55 +0100 Subject: [PATCH] Expose elastic ip's private_ip_address --- lib/fog/aws/models/compute/address.rb | 1 + lib/fog/aws/parsers/compute/describe_addresses.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/aws/models/compute/address.rb b/lib/fog/aws/models/compute/address.rb index 011f119ac..6be7a9f79 100644 --- a/lib/fog/aws/models/compute/address.rb +++ b/lib/fog/aws/models/compute/address.rb @@ -4,6 +4,7 @@ module Fog class Address < Fog::Model identity :public_ip, :aliases => 'publicIp' + attribute :private_ip_address, :aliases => 'privateIpAddress' attribute :allocation_id, :aliases => 'allocationId' attribute :association_id, :aliases => 'associationId' attribute :server_id, :aliases => 'instanceId' diff --git a/lib/fog/aws/parsers/compute/describe_addresses.rb b/lib/fog/aws/parsers/compute/describe_addresses.rb index 9b9515e87..39007fb66 100644 --- a/lib/fog/aws/parsers/compute/describe_addresses.rb +++ b/lib/fog/aws/parsers/compute/describe_addresses.rb @@ -10,7 +10,7 @@ module Fog def end_element(name) case name - when 'instanceId', 'publicIp', 'domain', 'allocationId', 'associationId', 'networkInterfaceId', 'networkInterfaceOwnerId' + when 'instanceId', 'publicIp', 'domain', 'allocationId', 'associationId', 'networkInterfaceId', 'networkInterfaceOwnerId', 'privateIpAddress' @address[name] = value when 'item' @response['addressesSet'] << @address