@cryptotaxi247 / netdata-1 / commits / c26ad4844

integrations: yes/no instead of True/False in tables (#16289)

Ilya Mashchenko committed Oct 28, 2023 at 14:58 UTC c26ad48443023bb63157396adefa59e4fa09c5ff
1 file changed +5 -5
integrations/gen_integrations.py
+5 -5
@@ -152,11 +152,11 @@ def get_jinja_env():
152
153
154 def strfy(value):
155 - if not isinstance(value, str):
156 - return value
157 -
158 - return ' '.join([v.strip() for v in value.strip().split("\n") if v]).replace('|', '/')
159 -
155 + if isinstance(value, bool):
156 + return "yes" if value else "no"
157 + if isinstance(value, str):
158 + return ' '.join([v.strip() for v in value.strip().split("\n") if v]).replace('|', '/')
159 + return value
160
161
162 def get_category_sets(categories):