]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/telemetry: move contact info to an 'ident' channel
authorSage Weil <sage@redhat.com>
Thu, 25 Jul 2019 15:46:55 +0000 (10:46 -0500)
committerSage Weil <sage@redhat.com>
Thu, 25 Jul 2019 15:46:55 +0000 (10:46 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/telemetry/module.py

index 2b9f419f3e95851414178eee8a31154fc3158484..495fd5d8c55fd53dd6a0fd45c5d925b69d7b3d5f 100644 (file)
@@ -16,7 +16,7 @@ from collections import defaultdict
 
 from mgr_module import MgrModule
 
-ALL_CHANNELS = ['basic', 'crash', 'device']
+ALL_CHANNELS = ['basic', 'ident', 'crash', 'device']
 
 class Module(MgrModule):
     config = dict()
@@ -80,6 +80,12 @@ class Module(MgrModule):
             'default': True,
             'description': 'Share basic cluster information (size, version)',
         },
+        {
+            'name': 'channel_ident',
+            'type': 'bool',
+            'default': False,
+            'description': 'Share a user-provided description and/or contact email for the cluster',
+        },
         {
             'name': 'channel_crash',
             'type': 'bool',
@@ -229,11 +235,11 @@ class Module(MgrModule):
             'channels_available': ALL_CHANNELS,
         }
 
-        if self.leaderboard:
-            report['leaderboard'] = True
-
-        for option in ['description', 'contact', 'organization']:
-            report[option] = getattr(self, option)
+        if 'ident' in channels:
+            if self.leaderboard:
+                report['leaderboard'] = True
+            for option in ['description', 'contact', 'organization']:
+                report[option] = getattr(self, option)
 
         if 'basic' in channels:
             mon_map = self.get('mon_map')