From 562c8169086d48ba3dd62a63436a5f76b7718651 Mon Sep 17 00:00:00 2001 From: Amey Bhide Date: Fri, 11 Sep 2015 14:09:28 -0700 Subject: [PATCH] Replace missing tag with "" instead of None NSXV3 backend field validation fails if None is passed for missing tags Change-Id: I8d6b60040647ce8de4baf2f00752b1a7bb8497ba --- vmware_nsx/neutron/plugins/vmware/common/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmware_nsx/neutron/plugins/vmware/common/utils.py b/vmware_nsx/neutron/plugins/vmware/common/utils.py index 7044ef948e..982149045c 100644 --- a/vmware_nsx/neutron/plugins/vmware/common/utils.py +++ b/vmware_nsx/neutron/plugins/vmware/common/utils.py @@ -93,9 +93,9 @@ def build_v3_tags_payload(logical_entity): neutron-id: """ return [{"scope": "neutron-id", - "tag": logical_entity.get("id")}, + "tag": logical_entity.get("id", "")}, {"scope": "os-tid", - "tag": logical_entity.get("tenant_id")}, + "tag": logical_entity.get("tenant_id", "")}, {"scope": "os-api-version", "tag": version.version_info.release_string()}]