Skip Menu |
 

This queue is for tickets about the VM-EC2 CPAN distribution.

Report information
The Basics
Id: 84983
Status: resolved
Priority: 0/
Queue: VM-EC2

People
Owner: LDS [...] cpan.org
Requestors: Peter [...] PSDT.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: VPN Gateway availabilityZone problem in VpnGateway.pm
Date: Wed, 01 May 2013 18:58:44 -0700
To: bug-VM-EC2 [...] rt.cpan.org
From: Peter Scott <Peter [...] PSDT.com>
Download (untitled) / with headers
text/plain 599b
There's a problem when there is no availability zone specified and this routine is supposed to return information for all of them. $zone gets set to undef and that results in the error [InvalidParameterValue] Invalid availability zone: [] from API call 'DescribeAvailabilityZones' at /usr/local/lib/perl5/site_perl/5.16.3/VM/EC2/VPC/VpnGateway.pm line 91. The argument shouldn't be passed in that case. One possible fix: sub availabilityZone { my $self = shift; my $zone = $self->SUPER::availabilityZone; return $self->aws->describe_availability_zones($zone ? $zone : ()); }
Download (untitled) / with headers
text/plain 729b
Working on this now. Thanks for the report. On Wed May 01 21:58:43 2013, Peter@PSDT.com wrote: Show quoted text
> There's a problem when there is no availability zone specified and this > routine is supposed to return information for all of them. $zone gets > set to undef and that results in the error > > [InvalidParameterValue] Invalid availability zone: [] from API call > 'DescribeAvailabilityZones' at > /usr/local/lib/perl5/site_perl/5.16.3/VM/EC2/VPC/VpnGateway.pm line 91. > > The argument shouldn't be passed in that case. One possible fix: > > sub availabilityZone { > my $self = shift; > my $zone = $self->SUPER::availabilityZone; > return $self->aws->describe_availability_zones($zone ? $zone : ()); > } >
Now fixed in github.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.