]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Windows: Fixes wintypes import issue in vhdutils
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Sun, 15 Mar 2015 21:32:48 +0000 (23:32 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Sun, 15 Mar 2015 21:36:15 +0000 (23:36 +0200)
commitc14cec2634a34f19a91a1587d4c148e8c22ef14d
tree80703f1b3cb3533e14b45295b88d11759756bba0
parent33b885381640861cc1fa3af65e95fc0cf619c9f0
Windows: Fixes wintypes import issue in vhdutils

At the moment, wintypes is accessed as a ctypes attribute. In
some environments, this raises an AttributeError. For this
reason, the Windows iSCSI and Windows SMBFS drivers fail to
initialize.

In order to avoid this, wintypes must be explicitly imported in
vhdutils.

Change-Id: I78bb916b0da3f7540e7a428d0bab10edc6a5b963
Closes-Bug: #1434130
cinder/tests/windows/test_vhdutils.py
cinder/volume/drivers/windows/vhdutils.py