From: Andy Bavier Date: Fri, 26 Feb 2010 19:17:58 +0000 (+0000) Subject: Fix bug where instances show up in generic RSpec X-Git-Tag: sfa-0.9-11~58 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=23608cf7177e124b221b63696d064b0a14dcac37 Fix bug where instances show up in generic RSpec --- diff --git a/sfa/managers/aggregate_manager_eucalyptus.py b/sfa/managers/aggregate_manager_eucalyptus.py index a38a6e85..e1d93033 100644 --- a/sfa/managers/aggregate_manager_eucalyptus.py +++ b/sfa/managers/aggregate_manager_eucalyptus.py @@ -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 """