ZF-9644: Not all instances are returned by describe()

Issue Type: Bug Created: 2010-04-09T13:41:29.000+0000 Last Updated: 2010-04-28T15:13:49.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)

Reporter: Shahar Evron (shahar) Assignee: Shahar Evron (shahar) Tags: - Zend_Service_Amazon_Ec2

Related issues: Attachments: - zf9644-r21805.patch


When trying to call ->describe() with two instance IDs in an array, I only get info of 1 instance in the response, despite the fact that the response XML from EC2 contains both instances I've asked for. Both instances are up and running.

The code I'm using:

<pre class="highlight">
$info = $instance->describe(
   array('i-16cd7c61', 'i-14cd7c63')

var_dump($info, $instance->getHttpClient()->getLastResponse()->getBody());

and the output:

<pre class="highlight">
array(1) {
  array(1) {
    array(17) {
      string(10) "r-304dec47"
      string(12) "--deleted--"
      array(1) {
        string(9) "zs-node01"
      string(10) "i-14cd7c63"
      string(12) "ami-d78ea5a3"
      array(2) {
        string(2) "16"
        string(7) "running"
      string(43) ""
      string(48) ""
      string(7) "pokus01"
      string(0) ""
      string(8) "m1.small"
      string(24) "2010-04-09T19:27:04.000Z"
      string(10) "eu-west-1b"
      string(12) "aki-02486376"
      string(0) ""
      string(1) "1"
      string(8) "disabled"
string(3475) "<?xml version="1.0"?>

Note how the dumped array only shows one instance, but the XML contains both.


Posted by Shahar Evron (shahar) on 2010-04-09T13:50:12.000+0000

Attached is a dead-simple patch against rev. 21805 which seems to solve the problem, at least for my use case. Not sure it's the right way.

Posted by Shahar Evron (shahar) on 2010-04-28T15:13:48.000+0000

Fixed in r22046

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.