From 860ec9f71f3b0f7c6836b1f1bd24c256f36b2b69 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 31 Jan 2012 21:22:47 -0500 Subject: [PATCH] fix AttributeError --- sfa/openstack/osaggregate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sfa/openstack/osaggregate.py b/sfa/openstack/osaggregate.py index 521cbb8d..c165cfbe 100644 --- a/sfa/openstack/osaggregate.py +++ b/sfa/openstack/osaggregate.py @@ -49,7 +49,7 @@ class OSAggregate: def get_slice_nodes(self, slice_xrn): name = OSXrn(xrn = slice_xrn).name - instances = self.driver.instance_get_all_by_project(name) + instances = self.driver.shell.instance_get_all_by_project(name) rspec_nodes = [] for instance in instances: rspec_node = Node() @@ -64,7 +64,7 @@ class OSAggregate: def get_aggregate_nodes(self): - zones = self.driver.zone_get_all() + zones = self.driver.shell.zone_get_all() if not zones: zones = ['cloud'] else: @@ -80,7 +80,7 @@ class OSAggregate: rspec_node['exclusive'] = 'false' rspec_node['hardware_types'] = [HardwareType({'name': 'plos-pc'}), HardwareType({'name': 'pc'})] - instances = self.driver.instance_type_get_all().values() + instances = self.driver.shell.instance_type_get_all().values() slivers = [self.instance_to_sliver(inst) for inst in instances] rspec_node['slivers'] = slivers rspec_nodes.append(rspec_node) -- 2.47.0