]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
VMware: Improve invalid container error message
authorVipin Balachandran <vbala@vmware.com>
Wed, 25 Mar 2015 11:28:07 +0000 (04:28 -0700)
committerVipin Balachandran <vbala@vmware.com>
Mon, 30 Mar 2015 12:39:03 +0000 (05:39 -0700)
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

index a9b3c47c80015a5e4c908bf0caeed94ce9c23b8b..d5896c564a92e064d76e7c6c7416d37da3d842d1 100644 (file)
@@ -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)