Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WebService-Linode CPAN distribution.

Report information
The Basics
Id: 49452
Status: resolved
Worked: 10 min
Priority: 0/
Queue: WebService-Linode

People
Owner: michael [...] thegrebs.com
Requestors: justin [...] computerplugin.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.04
Fixed in: 0.05



in domainResourceGet nowhere does it check to see if args{domainid} is defined. It also doesn't seem to set the passed in value so when the action is executed it causes the following error: PI Error 7: DOMAINID is not of type numeric. suggested fix: sub domainResourceGet { my ($self, %args) = @_; $self->_debug(10, 'domainResourceGet called'); my $domainid; unless (exists ($args{resourceid}) && exists ($args{domainid})) { $self->_error(-1, 'Must pass domainid or domain and resourceid domainResourceGet'); return; } $domainid = $args{domainid}; my $data = $self->do_request( api_action => 'domain.resource.list', domainid => $domainid, resourceid => $args{resourceid}, ); return unless defined ($data); return $self->_lc_keys($data); }
Thank you for your report. I've fixed this and have it lined up for 0.05 which I hope to be getting out today. Mike