From 471c9aeb512c3a9ec6bdcb8f610f1f43149d2c73 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Thu, 20 Aug 2020 05:42:29 -0400 Subject: [PATCH] pybind / snap_schedule: remove 'SNAP_SCHED_TESTING' check Next commit introduces a module option to allow minute granularity snapshots. Signed-off-by: Venky Shankar --- src/pybind/mgr/snap_schedule/fs/schedule.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pybind/mgr/snap_schedule/fs/schedule.py b/src/pybind/mgr/snap_schedule/fs/schedule.py index 9b89f476e26cc..d9246c1a3334f 100644 --- a/src/pybind/mgr/snap_schedule/fs/schedule.py +++ b/src/pybind/mgr/snap_schedule/fs/schedule.py @@ -13,10 +13,6 @@ from typing import Tuple, Any log = logging.getLogger(__name__) - -TESTING = 'SNAP_SCHED_TESTING' in environ - - # Work around missing datetime.fromisoformat for < python3.7 SNAP_DB_TS_FORMAT = '%Y-%m-%dT%H:%M:%S' try: @@ -363,7 +359,7 @@ class Schedule(object): def repeat(self): mult = self.schedule[-1] period = int(self.schedule[0:-1]) - if TESTING and mult == 'M': + if mult == 'M': return period * 60 elif mult == 'h': return period * 60 * 60 -- 2.39.5