]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/telemetry: Check if boolean is False or not present
authorWido den Hollander <wido@42on.com>
Thu, 24 May 2018 16:48:29 +0000 (18:48 +0200)
committerJoao Eduardo Luis <joao@suse.com>
Mon, 9 Dec 2019 19:36:54 +0000 (19:36 +0000)
Now we disable the module if the boolean is True

Signed-off-by: Wido den Hollander <wido@42on.com>
(cherry picked from commit 20f5696a735094cbaa0a698f41094cd5a5ac96f4)

src/pybind/mgr/telemetry/module.py

index 98600e87d8e4a689ff40d090b5e1d98a96a1bb9e..021fbd7c210774b365cb5a42214a5b989194d0a2 100644 (file)
@@ -336,7 +336,7 @@ class Module(MgrModule):
         self.event.wait(10)
 
         while self.run:
-            if self.config['enabled']:
+            if not self.config['enabled']:
                 self.log.info('Not sending report until configured to do so')
                 self.event.wait(1800)
                 continue