Fix bug where instances show up in generic RSpec
authorAndy Bavier <acb@cs.princeton.edu>
Fri, 26 Feb 2010 19:17:58 +0000 (19:17 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Fri, 26 Feb 2010 19:17:58 +0000 (19:17 +0000)
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
 
 """