From d0087559e8333c3e07b15c8e09d0126556dfe9ea Mon Sep 17 00:00:00 2001 From: Vipin Balachandran Date: Wed, 25 Mar 2015 04:28:07 -0700 Subject: [PATCH] VMware: Improve invalid container error message This patch improves the error message when dealing with invalid image container types. Mike had a comment in commit 869e71c31a6e2c1753796625b060fa39848af683 to make the error message more specific. Change-Id: I211e570e11c8525878195e3c24ef0957e6bb526d --- cinder/volume/drivers/vmware/vmdk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinder/volume/drivers/vmware/vmdk.py b/cinder/volume/drivers/vmware/vmdk.py index a9b3c47c8..d5896c564 100644 --- a/cinder/volume/drivers/vmware/vmdk.py +++ b/cinder/volume/drivers/vmware/vmdk.py @@ -1240,8 +1240,8 @@ class VMwareEsxVmdkDriver(driver.VolumeDriver): # Validate container format; only 'bare' is supported currently. container_format = metadata.get('container_format') if (container_format and container_format != 'bare'): - msg = _("Container format: %s is unsupported, only 'bare' is " - "supported.") % container_format + msg = _("Container format: %s is unsupported by the VMDK driver, " + "only 'bare' is supported.") % container_format LOG.error(msg) raise exception.ImageUnacceptable(image_id=image_id, reason=msg) -- 2.45.2