]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerAfreen <afreen23.git@gmail.com>
Thu, 15 Feb 2024 08:27:55 +0000 (13:57 +0530)
commit2c641488469dd5e35510c1f9a63c047dd4ab6e87
tree565ba79c8a941a234b3cd7cae96bfb84df0860ab
parent0eb898b992f29e66e8a8f46c807a9a54882ee637
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