From: Neha Ojha Date: Wed, 30 Jun 2021 19:38:15 +0000 (+0000) Subject: pybind/mgr/progress/module.py: no need to cast reported_epoch and _start_epoch X-Git-Tag: v16.2.7~84^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48d9bbd093efa251a17d4de61bc74f5d42d53e2c;p=ceph.git pybind/mgr/progress/module.py: no need to cast reported_epoch and _start_epoch reported_epoch is an int, see 22128e3de697f3fdf66faf3fe3b701a3a599968f and _start_epoch is also an int, see type annotations in 2af2afa5e9191115bb6f0b36194830ffb91938bf Signed-off-by: Neha Ojha (cherry picked from commit da268faed8e7a3eacb68b1c92855dc3a43225961) Signed-off-by: Kamoltat --- diff --git a/src/pybind/mgr/progress/module.py b/src/pybind/mgr/progress/module.py index 812c16fdb0c..3aab7514f3a 100644 --- a/src/pybind/mgr/progress/module.py +++ b/src/pybind/mgr/progress/module.py @@ -345,7 +345,7 @@ class PgRecoveryEvent(Event): complete.add(pg) continue # Only checks the state of each PGs when it's epoch >= the OSDMap's epoch - if int(info['reported_epoch']) < int(self._start_epoch): + if info['reported_epoch'] < self._start_epoch: continue state = info['state']