]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/mirroring/module.py
import quincy beta 17.1.0
[ceph.git] / ceph / src / pybind / mgr / mirroring / module.py
index b9223111ae902507aa3f52ea374d1adce0ae0cf7..4b4354ab2b9c4e0ede13153b2cac5d62f560137a 100644 (file)
@@ -1,17 +1,18 @@
 from typing import List, Optional
 
-from mgr_module import MgrModule, CLIReadCommand, CLIWriteCommand, Option
+from mgr_module import MgrModule, CLIReadCommand, CLIWriteCommand, Option, NotifyType
 
 from .fs.snapshot_mirror import FSSnapshotMirror
 
 class Module(MgrModule):
     MODULE_OPTIONS: List[Option] = []
+    NOTIFY_TYPES = [NotifyType.fs_map]
 
     def __init__(self, *args, **kwargs):
         super().__init__(*args, **kwargs)
         self.fs_snapshot_mirror = FSSnapshotMirror(self)
 
-    def notify(self, notify_type, notify_id):
+    def notify(self, notify_type: NotifyType, notify_id):
         self.fs_snapshot_mirror.notify(notify_type)
 
     @CLIWriteCommand('fs snapshot mirror enable')