summaryrefslogtreecommitdiff
path: root/nova/virt/powervm/driver.py
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2020-01-14 14:44:29 +0000
committerStephen Finucane <sfinucan@redhat.com>2020-02-18 11:45:39 +0000
commit5fc3b81fdfbac9161e77ec2373b536a77a054efa (patch)
treee4bc4d6878054aa37d3df531b477d91fd6059307 /nova/virt/powervm/driver.py
parente69dbfa0d34d6b3f51282ac0ab51cdab3c2115e4 (diff)
downloadnova-5fc3b81fdfbac9161e77ec2373b536a77a054efa.tar.gz
Remove 'nova.image.api' module
This doesn't exist for 'nova.volume' and no longer exists for 'nova.network'. There's only one image backend we support, so do like we've done elsewhere and just use 'nova.image.glance'. Change-Id: I7ca7d8a92dfbc7c8d0ee2f9e660eabaa7e220e2a Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'nova/virt/powervm/driver.py')
-rw-r--r--nova/virt/powervm/driver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/virt/powervm/driver.py b/nova/virt/powervm/driver.py
index 6b62aa7539..96cd736c34 100644
--- a/nova/virt/powervm/driver.py
+++ b/nova/virt/powervm/driver.py
@@ -34,7 +34,7 @@ from nova import conf as cfg
from nova.console import type as console_type
from nova import exception as exc
from nova.i18n import _
-from nova import image
+from nova.image import glance
from nova.virt import configdrive
from nova.virt import driver
from nova.virt.powervm import host as pvm_host
@@ -118,7 +118,7 @@ class PowerVMDriver(driver.ComputeDriver):
self.disk_dvr = importutils.import_object_ns(
DISK_ADPT_NS, DISK_ADPT_MAPPINGS[CONF.powervm.disk_driver.lower()],
self.adapter, self.host_wrapper.uuid)
- self.image_api = image.API()
+ self.image_api = glance.API()
LOG.info("The PowerVM compute driver has been initialized.")