From: Jan Fajerski Date: Thu, 14 May 2020 08:41:50 +0000 (+0200) Subject: pybing/mgr/snap_schedule: Add active flag to status report X-Git-Tag: v16.1.0~1299^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=efc9ca0330f4e9c6e1a74d409a3d2d8077071e7b;p=ceph.git pybing/mgr/snap_schedule: Add active flag to status report Signed-off-by: Jan Fajerski --- diff --git a/src/pybind/mgr/snap_schedule/fs/schedule.py b/src/pybind/mgr/snap_schedule/fs/schedule.py index 47c498b7a0a1..68123fd9f686 100644 --- a/src/pybind/mgr/snap_schedule/fs/schedule.py +++ b/src/pybind/mgr/snap_schedule/fs/schedule.py @@ -28,6 +28,7 @@ class Schedule(object): last_pruned=None, created_count=0, pruned_count=0, + active=True, ): self.fs = fs_name self.subvol = subvol @@ -61,6 +62,7 @@ class Schedule(object): self.last_pruned = last_pruned self.created_count = created_count self.pruned_count = pruned_count + self.active = active @classmethod def _from_get_query(cls, table_row, fs): @@ -76,7 +78,8 @@ class Schedule(object): table_row['last'], table_row['last_pruned'], table_row['created_count'], - table_row['pruned_count']) + table_row['pruned_count'], + table_row['active']) def __str__(self): return f'''{self.path} {self.schedule} {self.retention}'''