ES.DescribeElasticsearchDomain fails
eserte opened this issue · 1 comments
eserte commented
The following oneliner fails:
$ env AWS_CONFIG_FILE=... perl -MData::Dumper -MPaws -e 'my $x = Paws->service("ES", region => "eu-central-1"); warn Dumper($x->DescribeElasticsearchDomain(DomainName => "..."))'
Not an ARRAY reference at /opt/perl-5.30.3/lib/site_perl/5.30.3/Paws/Net/RestJsonResponse.pm line 145.
The failing line is
145: $args{ $att } = $att_class->new(map { ($_->{ $xml_keys } => $_->{ $xml_values }) } @$value);
The debugger shows that $value is a HASH reference, not an ARRAY reference. $key at this point is "LogPublishingOptions".