diff --git a/library_generation/templates/owlbot.py.j2 b/library_generation/templates/owlbot.py.j2 index 84f070f35b..b3a7dee5a4 100644 --- a/library_generation/templates/owlbot.py.j2 +++ b/library_generation/templates/owlbot.py.j2 @@ -23,6 +23,6 @@ for library in s.get_staging_dirs(): s.remove_staging_dirs() {% if should_include_templates %}java.common_templates(monorepo=True, {% if template_excludes %}excludes=[ {%- for exclude in template_excludes %} - "{{ exclude }}", + "{{ exclude }}"{% if not loop.last %},{% endif %} {%- endfor %} ]{% endif %}){% endif %} diff --git a/library_generation/test/resources/goldens/owlbot-golden.py b/library_generation/test/resources/goldens/owlbot-golden.py index c2c142892a..2ba11e6bba 100644 --- a/library_generation/test/resources/goldens/owlbot-golden.py +++ b/library_generation/test/resources/goldens/owlbot-golden.py @@ -32,5 +32,5 @@ "java.header", "license-checks.xml", "renovate.json", - ".gitignore", + ".gitignore" ]) \ No newline at end of file