diff options
author | Stephen Finucane <sfinucan@redhat.com> | 2020-01-14 14:44:29 +0000 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2020-02-18 11:45:39 +0000 |
commit | 5fc3b81fdfbac9161e77ec2373b536a77a054efa (patch) | |
tree | e4bc4d6878054aa37d3df531b477d91fd6059307 /nova/notifications | |
parent | e69dbfa0d34d6b3f51282ac0ab51cdab3c2115e4 (diff) | |
download | nova-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/notifications')
-rw-r--r-- | nova/notifications/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/notifications/base.py b/nova/notifications/base.py index c97bbca37e..3e57a57c2c 100644 --- a/nova/notifications/base.py +++ b/nova/notifications/base.py @@ -28,7 +28,7 @@ from oslo_utils import timeutils import nova.conf import nova.context from nova import exception -from nova import image as image_api +from nova.image import glance from nova.network import model as network_model from nova.network import neutron from nova.notifications.objects import base as notification_base @@ -370,7 +370,7 @@ def info_from_instance(context, instance, network_info, # NOTE(mriedem): We can eventually drop this when we no longer # support legacy notifications since versioned notifications don't # use this. - image_ref_url = image_api.API().generate_image_url( + image_ref_url = glance.API().generate_image_url( instance.image_ref, context) except ks_exc.EndpointNotFound: |