]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Windows: Improve vhdutils error messages
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 16 Apr 2015 21:37:18 +0000 (00:37 +0300)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Sat, 18 Apr 2015 10:22:39 +0000 (13:22 +0300)
commit89ccbe04749b8f9cab9c1b0be27b10b5145db2f4
tree603c3c9021c8061faf55aca7e37826d9fa84291b
parent8d27e2939617053eb5c26e9479140578ef257737
Windows: Improve vhdutils error messages

The Windows Cinder volume drivers use Win32 API functions for VHD/X
related operations. In case of failure, those return non-zero error
codes.

We can use the FormatMessage function in order to retrieve more
accurate error descriptions based on the error codes.

Change-Id: Ic0d68fe57847c6b1875567873a60315ba7c6d436
cinder/tests/unit/windows/test_vhdutils.py
cinder/volume/drivers/windows/vhdutils.py