Fix bug where instances show up in generic RSpec
[sfa.git] / sfa / managers / aggregate_manager_eucalyptus.py
index a38a6e8..e1d9303 100644 (file)
@@ -396,6 +396,11 @@ def get_rspec(api, xrn, origin_hrn):
 
     rspec = EucaRSpecBuilder(cloud).toXML()
 
+    # Remove the instances records so next time they won't 
+    # show up.
+    if 'instances' in cloud:
+        del cloud['instances']
+
     return rspec
 
 """