diff --git a/lib/fog/aws/models/compute/security_group.rb b/lib/fog/aws/models/compute/security_group.rb index b2af636e8..e94b230d6 100644 --- a/lib/fog/aws/models/compute/security_group.rb +++ b/lib/fog/aws/models/compute/security_group.rb @@ -83,8 +83,8 @@ module Fog requires_one :name, :group_id ip_permission = { - 'FromPort' => range.min, - 'ToPort' => range.max, + 'FromPort' => range.begin, + 'ToPort' => range.end, 'IpProtocol' => options[:ip_protocol] || 'tcp' } @@ -197,8 +197,8 @@ module Fog requires_one :name, :group_id ip_permission = { - 'FromPort' => range.min, - 'ToPort' => range.max, + 'FromPort' => range.begin, + 'ToPort' => range.end, 'IpProtocol' => options[:ip_protocol] || 'tcp' }