diff --git a/ansible/roles/neutron/templates/neutron-server.json.j2 b/ansible/roles/neutron/templates/neutron-server.json.j2
index ba41a52f9927acbf105f6f956f97518dabde08ed..30bb11f49c48d290ab34116cee35f82f68b913ca 100644
--- a/ansible/roles/neutron/templates/neutron-server.json.j2
+++ b/ansible/roles/neutron/templates/neutron-server.json.j2
@@ -26,7 +26,7 @@
             "owner": "neutron",
             "optional": {{ (neutron_plugin_agent not in ['vmware_nsxv', 'vmware_nsxv3', 'vmware_dvs']) | string | lower }},
             "perm": "0600"
-        }{% endif %}
+        },{% endif %}
 {% if check_extra_ml2_plugins is defined and check_extra_ml2_plugins.matched > 0 %}{% for plugin in check_extra_ml2_plugins.files %}
         {
             "source": "{{ container_config_directory }}/{{ plugin.path | basename }}",
diff --git a/releasenotes/notes/fix-neutron-vmware-4a8804399d47d8d7.yaml b/releasenotes/notes/fix-neutron-vmware-4a8804399d47d8d7.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4944b1885600089f53412a284501f65b4c8cd306
--- /dev/null
+++ b/releasenotes/notes/fix-neutron-vmware-4a8804399d47d8d7.yaml
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Fixes an issue with ``config.json`` for ``neutron-server`` when a VMware
+    plugin agent is used.