]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Refactor cinder.utils.is_valid_boolstr
authorGorka Eguileor <geguileo@redhat.com>
Mon, 14 Dec 2015 15:02:20 +0000 (16:02 +0100)
committerGorka Eguileor <geguileo@redhat.com>
Mon, 14 Dec 2015 15:02:20 +0000 (16:02 +0100)
commite59df24809fbd54436839303cbd13f0717c9ced2
tree77efbf7be88c774c25709a5809813ad058d9211f
parenta4e76566200a0adb311c800e620dc400b73910c0
Refactor cinder.utils.is_valid_boolstr

Method is_valid_boolstr is currently doing 8 different checks against
the same variable.  This patch refactors this method to be more pythonic
by using the in operator.

Change-Id: If77c3a80a5698685aa67120bcee2e223584f5d16
cinder/utils.py