Replace missing tag with "" instead of None

NSXV3 backend field validation fails if None is passed for missing tags

Change-Id: I8d6b60040647ce8de4baf2f00752b1a7bb8497ba
This commit is contained in:
Amey Bhide 2015-09-11 14:09:28 -07:00
parent 43d2a57b82
commit 562c816908
1 changed files with 2 additions and 2 deletions

View File

@ -93,9 +93,9 @@ def build_v3_tags_payload(logical_entity):
neutron-id:<resource-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()}]