summaryrefslogtreecommitdiff
path: root/ironic/nova
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-07-04 00:40:53 +0000
committerGerrit Code Review <review@openstack.org>2014-07-04 00:40:53 +0000
commite24e3978c9518f3c728a48b9eca9ad0ffff1eda3 (patch)
tree7a504db2bced631d3ca910280aef2c6d85cc7f10 /ironic/nova
parentb0d39e721a5313d29570da009028569564dd0858 (diff)
parentda967d77894be6f23d81fb5cc948f9d13898ba84 (diff)
downloadironic-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.py2
-rw-r--r--ironic/nova/virt/ironic/driver.py6
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.