From: Tony Mack Date: Fri, 3 Feb 2012 19:13:54 +0000 (-0500) Subject: fix NameError X-Git-Tag: merged-in-sfa-2.1-2~31 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d5af230afa3a33d47f6e8fdd3128326c148c0e70;p=sfa.git fix NameError --- diff --git a/sfa/openstack/nova_driver.py b/sfa/openstack/nova_driver.py index 792a8ac0..3f8b7e3c 100644 --- a/sfa/openstack/nova_driver.py +++ b/sfa/openstack/nova_driver.py @@ -42,9 +42,9 @@ class NovaDriver (Driver): self.shell = NovaShell (config) self.cache=None if config.SFA_AGGREGATE_CACHING: - if OpenstackDriver.cache is None: - OpenstackDriver.cache = Cache() - self.cache = OpenstackDriver.cache + if NovaDriver.cache is None: + NovaDriver.cache = Cache() + self.cache = NovaDriver.cache ######################################## ########## registry oriented