]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/telemetry: Check if boolean is False or not present 22227/head
authorWido den Hollander <wido@42on.com>
Thu, 24 May 2018 16:48:29 +0000 (18:48 +0200)
committerWido den Hollander <wido@42on.com>
Thu, 24 May 2018 18:37:28 +0000 (20:37 +0200)
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 d1b91fd75d88475eb4fe3649478341af33ef8201..f83ddfe26c2134ba9761c711a8e5c627bdd18945 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