diff options
author | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-09-14 14:07:02 +0300 |
---|---|---|
committer | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-10-03 14:50:01 +0300 |
commit | f1c92528c528626052bf4d73dbf09e2bc9de5ad9 (patch) | |
tree | 32722f139e32ee234c01ad9067f3bb1c32cd70c7 /sdnvpn/lib/utils.py | |
parent | 46cb9e081cb7cb64201d739f46cc1fc2fecf2a12 (diff) |
Replace glance client calls with openstack sdk
JIRA: SDNVPN-220
This patch replaces all calls of glance client with openstack sdk.
Change-Id: I8bf9913e3be9615c462791a20267e4dc71ffd727
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'sdnvpn/lib/utils.py')
-rw-r--r-- | sdnvpn/lib/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sdnvpn/lib/utils.py b/sdnvpn/lib/utils.py index 9f4c883..9b0673d 100644 --- a/sdnvpn/lib/utils.py +++ b/sdnvpn/lib/utils.py @@ -722,10 +722,10 @@ def cleanup_nova(nova_client, instance_ids, flavor_ids=None): return True -def cleanup_glance(glance_client, image_ids): +def cleanup_glance(conn, image_ids): if len(image_ids) != 0: for image_id in image_ids: - if not os_utils.delete_glance_image(glance_client, image_id): + if not os_utils.delete_glance_image(conn, image_id): logger.error('Fail to delete all images. ' 'Image with id {} was not deleted.'. format(image_id)) |