Subject: | Wrong datatype cause domainGet error |
Hello all,
I've found that the return datatype in function domainGet(), and it
causes the function error by returning the message like "Not A HASH
reference".
In function domainGet():
return $self->_lc_keys($data);
it should return a hash reference, like
return $self->_lc_keys(@$data);
I have created a patch (in attachment), please fix this bug.
Thanks a lot
--
stephon
Subject: | patch-DNS.pm.txt |
--- DNS.pm 2011-10-21 17:18:00.498222000 +0800
+++ DNS-new.pm 2011-10-21 17:16:34.124402000 +0800
@@ -3,6 +3,7 @@
use strict;
use warnings;
use Carp;
use WebService::Linode::Base;
@@ -82,7 +83,7 @@
api_action => 'domain.list', domainid => $domainid
);
- return $self->_lc_keys($data);
+ return $self->_lc_keys(@$data);
}