Browse Source

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

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22046 44c647ce-9c0f-0410-b52a-842ac1e357ba
shahar 15 years ago
parent
commit
8bf13a2797
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/Service/Amazon/Ec2/Instance.php

+ 1 - 1
library/Zend/Service/Amazon/Ec2/Instance.php

@@ -282,9 +282,9 @@ class Zend_Service_Amazon_Ec2_Instance extends Zend_Service_Amazon_Ec2_Abstract
                 $item['amiLaunchIndex'] = $xpath->evaluate('string(ec2:amiLaunchIndex/text())', $is_node);
                 $item['monitoringState'] = $xpath->evaluate('string(ec2:monitoring/ec2:state/text())', $is_node);
 
+                $return['instances'][] = $item;
                 unset($is_node);
             }
-            $return['instances'][] = $item;
             unset($item);
             unset($is);
         }