Merge "libvirt: Fix misleading error in Ploop imagebackend"

This commit is contained in:
Jenkins
2017-03-07 20:13:58 +00:00
committed by Gerrit Code Review
+4 -4
View File
@@ -1078,10 +1078,10 @@ class Ploop(Image):
elif format == "raw":
self.pcs_format = "raw"
else:
reason = _("Virtuozzo doesn't support images in %s format."
" You should either set force_raw_images=True"
" in config or upload an image in ploop"
" or raw format.") % format
reason = _("Ploop image backend doesn't support images in"
" %s format. You should either set"
" force_raw_images=True in config or upload an"
" image in ploop or raw format.") % format
raise exception.ImageUnacceptable(
image_id=kwargs["image_id"],
reason=reason)