From c62c16bd223a8da2262a3dadf1905ef3c2a7c88b Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Fri, 28 Jan 2022 19:14:09 +0100 Subject: Support img_type Glance property Follow-up to change I4ce5f7a2317d952f976194d2022328f4afbb0258. Change-Id: I36673c801d426ea9cb204ca52b6fb6f719eb396a Depends-On: https://review.opendev.org/c/openstack/glance/+/826684 --- ironic/common/images.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ironic/common') diff --git a/ironic/common/images.py b/ironic/common/images.py index 939fcb676..275989f14 100644 --- a/ironic/common/images.py +++ b/ironic/common/images.py @@ -600,6 +600,10 @@ def is_whole_disk_image(ctx, instance_info): except Exception: return + image_type = iproperties.get('img_type') + if image_type: + return image_type != IMAGE_TYPE_PARTITION + is_whole_disk_image = (not iproperties.get('kernel_id') and not iproperties.get('ramdisk_id')) else: -- cgit v1.2.1