]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix always false condition in glance wrapper
authorAnton Arefiev <aarefiev@mirantis.com>
Wed, 1 Apr 2015 16:14:26 +0000 (19:14 +0300)
committerAnton Arefiev <aarefiev@mirantis.com>
Wed, 1 Apr 2015 16:26:06 +0000 (19:26 +0300)
commit486da4305d607b32b03709c6b0f26430776a37cf
treef3adf4d9db981dcff6a59ad57ab765b0a43c662c
parentbef2256e931cfa0756de874ac18fdfc12e32b7fc
Fix always false condition in glance wrapper

If statement's condition in GlanceClientWrapper's method 'call'
always false, because 'version' key passed through kwargs is
string, and variable chacked in 'call' is None or int.

Change-Id: Ief1e8d2c41aaa774666bc59d63cdea68f80f308a
Closes-Bug: #1439275
cinder/image/glance.py
cinder/tests/image/test_glance.py