@cryptotaxi247 / netdata-1 / commits / 112275c78

Fixes in integration generation script (#16141)

Fotis Voutsas committed Oct 6, 2023 at 11:24 UTC 112275c789f70d14e757cf72c9897451498c1b33
2 files changed +2 -2
integrations/gen_integrations.py
+1 -1
@@ -149,7 +149,7 @@ def strfy(value):
149 if not isinstance(value, str):
150 return value
151
152 - return ' '.join([v.strip() for v in value.strip().split("\n") if v])
152 + return ' '.join([v.strip() for v in value.strip().split("\n") if v]).replace('|', '/')
153
154
155
integrations/templates/setup.md
+1 -1
@@ -65,7 +65,7 @@ There is no configuration file.
65 | Name | Description | Default | Required |
66 |:----|:-----------|:-------|:--------:|
67 [% for item in entry.setup.configuration.options.list %]
68 -| [[ strfy(item.name) ]] | [[ strfy(item.description) ]] | [[ strfy(item.default) ]] | [[ strfy(item.required) ]] |
68 +| [[ strfy(item.name) ]] | [[ strfy(item.description) ]] | [[ strfy(item.default_value) ]] | [[ strfy(item.required) ]] |
69 [% endfor %]
70
71 [% for item in entry.setup.configuration.options.list %]