Skip to content

Commit 47a770e

Browse files
authored
Fix trailing , in manifest generation (#17538)
* fix trailing , in manifest generation * changelo
1 parent b206bc3 commit 47a770e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix trailing `,` in manifest.json generation template

datadog_checks_dev/datadog_checks/dev/tooling/commands/create.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def create(ctx, name, integration_type, location, non_interactive, quiet, dry_ru
154154
eula = 'assets/eula.pdf'
155155
template_fields['terms'] = f'\n "terms": {{\n "eula": "{eula}"\n }},'
156156
template_fields['author_info'] = (
157-
f'\n "author": {{\n "name": "{author_name}",\n "homepage": "{homepage}",\n "vendor_id": "{TODO_FILL_IN}",\n "sales_email": "{sales_email}",\n "support_email": "{support_email}"\n }},' # noqa
157+
f'\n "author": {{\n "name": "{author_name}",\n "homepage": "{homepage}",\n "vendor_id": "{TODO_FILL_IN}",\n "sales_email": "{sales_email}",\n "support_email": "{support_email}"\n }}' # noqa
158158
)
159159

160160
template_fields['pricing_plan'] = '\n "pricing": [],'
@@ -174,7 +174,7 @@ def create(ctx, name, integration_type, location, non_interactive, quiet, dry_ru
174174
"name": "Datadog",
175175
"homepage": "https://www.datadoghq.com",
176176
"sales_email": "info@datadoghq.com"
177-
},"""
177+
}"""
178178
else:
179179
prompt_and_update_if_missing(template_fields, 'email', 'Email used for support requests')
180180
prompt_and_update_if_missing(template_fields, 'author', 'Your name')
@@ -186,7 +186,7 @@ def create(ctx, name, integration_type, location, non_interactive, quiet, dry_ru
186186
"name": "{template_fields['author']}",
187187
"homepage": "",
188188
"sales_email": ""
189-
}},"""
189+
}}"""
190190
template_fields['terms'] = ''
191191
template_fields['integration_id'] = kebab_case_name(name)
192192
template_fields['package_url'] = (

0 commit comments

Comments
 (0)