Use empty string instead of None for removing edge-cluster

Change-Id: I004ffeb7e21ebf20cf438f14aab82f70d6f28470
This commit is contained in:
Adit Sarfaty
2019-05-16 10:39:52 +03:00
parent 645456a2e8
commit 26f1e2f99e
2 changed files with 2 additions and 2 deletions

View File

@@ -2709,7 +2709,7 @@ class TestPolicyTier1(NsxPolicyLibTestCase):
expected_def = core_defs.Tier1LocaleServiceDef(
tier1_id=tier1_id,
service_id=self.resourceApi._locale_service_id(tier1_id),
edge_cluster_path=None,
edge_cluster_path="",
tenant=TEST_TENANT)
self.assert_called_with_def(api_call, expected_def)

View File

@@ -1016,7 +1016,7 @@ class NsxPolicyTier1Api(NsxPolicyResourceBase):
t1service_def = core_defs.Tier1LocaleServiceDef(
tier1_id=tier1_id,
service_id=self._locale_service_id(tier1_id),
edge_cluster_path=None,
edge_cluster_path="",
tenant=tenant)
self.policy_api.create_or_update(t1service_def)