diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-07-04 00:40:53 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-07-04 00:40:53 +0000 |
commit | e24e3978c9518f3c728a48b9eca9ad0ffff1eda3 (patch) | |
tree | 7a504db2bced631d3ca910280aef2c6d85cc7f10 /ironic/nova | |
parent | b0d39e721a5313d29570da009028569564dd0858 (diff) | |
parent | da967d77894be6f23d81fb5cc948f9d13898ba84 (diff) | |
download | ironic-e24e3978c9518f3c728a48b9eca9ad0ffff1eda3.tar.gz |
Merge "Minor cleanups to nova virt driver and tests"
Diffstat (limited to 'ironic/nova')
-rw-r--r-- | ironic/nova/tests/virt/ironic/test_patcher.py | 2 | ||||
-rw-r--r-- | ironic/nova/virt/ironic/driver.py | 6 |
2 files changed, 0 insertions, 8 deletions
diff --git a/ironic/nova/tests/virt/ironic/test_patcher.py b/ironic/nova/tests/virt/ironic/test_patcher.py index e3a58a781..dde4f415c 100644 --- a/ironic/nova/tests/virt/ironic/test_patcher.py +++ b/ironic/nova/tests/virt/ironic/test_patcher.py @@ -18,10 +18,8 @@ from oslo.config import cfg from ironic.nova.virt.ironic import patcher from ironic.nova.tests.virt.ironic import utils as ironic_utils -from nova import exception from nova import context as nova_context from nova import test -from nova.objects.flavor import Flavor as flavor_obj from nova.tests import fake_instance CONF = cfg.CONF diff --git a/ironic/nova/virt/ironic/driver.py b/ironic/nova/virt/ironic/driver.py index 2591a5dba..6c62f8b27 100644 --- a/ironic/nova/virt/ironic/driver.py +++ b/ironic/nova/virt/ironic/driver.py @@ -308,12 +308,6 @@ class IronicDriver(virt_driver.ComputeDriver): _log_ironic_polling('become ACTIVE', node, instance) - @classmethod - def instance(cls): - if not hasattr(cls, '_instance'): - cls._instance = cls() - return cls._instance - def init_host(self, host): """Initialize anything that is necessary for the driver to function. |