[Tempest]: Fixing issue while getting router snat

Change-Id: I031a7d01ba8ccdaa8eefee2cf75cbbee2d264333
This commit is contained in:
Puneet Arora 2018-05-22 23:17:22 +00:00 committed by Devang Doshi
parent a7a36a20d0
commit df13cfca69
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class ApplianceManager(manager.NetworkScenarioTest):
router = routers_client.create_router(
name=name, admin_state_up=True, tenant_id=tenant_id)['router']
if set_gateway is not False:
if kwargs["enable_snat"] is not None:
if kwargs.get("enable_snat"):
public_network_info = {"external_gateway_info": dict(
network_id=self.topology_public_network_id,
enable_snat=kwargs["enable_snat"])}