From 23608cf7177e124b221b63696d064b0a14dcac37 Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Fri, 26 Feb 2010 19:17:58 +0000 Subject: [PATCH] Fix bug where instances show up in generic RSpec --- sfa/managers/aggregate_manager_eucalyptus.py | 5 +++++ 1 file changed, 5 insertions(+) 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 """ -- 2.43.0