]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
python-common: fix variable name reuse to make mypy happy
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 30 Mar 2023 20:48:02 +0000 (16:48 -0400)
committerAdam King <adking@redhat.com>
Tue, 25 Apr 2023 12:36:55 +0000 (08:36 -0400)
commit3d86414e93868cdfdae7f8e03fef6ecd2f1d95e1
tree94a33b697b039dea5262467708147b0b49f673bd
parente924ae058e6d733c09b42858d0e6cc1f7bd99ec7
python-common: fix variable name reuse to make mypy happy

The variables high and low were being used as both `str`s and regex
match objects. Rename the vars in the if block to avoid this problem.
This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit f2646dbaba943baccd2fa7d7860c73fa05e7cd8d)
src/python-common/ceph/deployment/drive_selection/matchers.py