From e7e33ca6359a470e9945e77b66caa543031cacc1 Mon Sep 17 00:00:00 2001 From: Denis Diachkov Date: Fri, 29 Sep 2017 21:30:07 -1000 Subject: [PATCH] rename ipv_6 to ipv6 in VPC attributes (with backward compatibility) --- lib/fog/aws/models/compute/vpc.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/fog/aws/models/compute/vpc.rb b/lib/fog/aws/models/compute/vpc.rb index d948840ea..ce1c04003 100644 --- a/lib/fog/aws/models/compute/vpc.rb +++ b/lib/fog/aws/models/compute/vpc.rb @@ -13,8 +13,14 @@ module Fog attribute :cidr_block_association_set, :aliases => 'cidrBlockAssociationSet' - attribute :ipv_6_cidr_block_association_set, :aliases => 'ipv6CidrBlockAssociationSet' - attribute :amazon_provided_ipv_6_cidr_block, :aliases => 'amazonProvidedIpv6CidrBlock' + attribute :ipv6_cidr_block_association_set, :aliases => 'ipv6CidrBlockAssociationSet' + attribute :amazon_provided_ipv6_cidr_block, :aliases => 'amazonProvidedIpv6CidrBlock' + + # Backward compatibility. Please use ipv6_cidr_block_association_set + alias_method :ipv_6_cidr_block_association_set, :ipv6_cidr_block_association_set + alias_method :ipv_6_cidr_block_association_set=, :ipv6_cidr_block_association_set= + alias_method :amazon_provided_ipv_6_cidr_block, :amazon_provided_ipv6_cidr_block + alias_method :amazon_provided_ipv_6_cidr_block=, :amazon_provided_ipv6_cidr_block= def subnets service.subnets(:filters => {'vpcId' => self.identity}).all