]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Convert lvm_mirrors to int
authorFlavio Percoco <flaper87@gmail.com>
Thu, 5 Dec 2013 15:14:39 +0000 (16:14 +0100)
committerFlavio Percoco <flaper87@gmail.com>
Thu, 5 Dec 2013 22:26:46 +0000 (23:26 +0100)
commit1dff30492f0ce1df3ef01ccc21353248a7207709
treedaf9909d980f38ca86e41dde7d1142a109fbb006
parent69ce114232f9102220b45c8242eda3e78872a3e6
Convert lvm_mirrors to int

When the location_info is parsed and `lvm_mirrors` extracted, it is not
being converted to int. This causes some boolean checks to return True
even when there are not mirrors enabled because of the u'0'.

Closes-bug: #1258133
Change-Id: I67c463d9f139fe326bbcab4d193c45459129b514
cinder/volume/drivers/lvm.py