Remove unused tenant_id variable

As discussed in [1] we can remove some unused
code.

[1] https://review.openstack.org/304032

Trivial fix

Change-Id: I54529092fc7e0988459d04fb1dcc092ac2fe92d6
This commit is contained in:
Tom Barron 2016-04-11 09:43:17 -04:00
parent a107b3d48d
commit 7383279940

View File

@ -143,18 +143,14 @@ class ShareScenarioTest(manager.NetworkScenarioTest):
self.addCleanup(client.delete_access_rule, share_id, access['id']) self.addCleanup(client.delete_access_rule, share_id, access['id'])
return access return access
def _create_router_interface(self, subnet_id, client=None, def _create_router_interface(self, subnet_id, client=None, router_id=None):
tenant_id=None, router_id=None):
"""Create a router interface """Create a router interface
:param subnet_id: id of the subnet :param subnet_id: id of the subnet
:param client: client object :param client: client object
:param tenant_id
""" """
if not client: if not client:
client = self.routers_client client = self.routers_client
if not tenant_id:
tenant_id = client.tenant_id
if not router_id: if not router_id:
router_id = self._get_router()['id'] router_id = self._get_router()['id']
client.add_router_interface(router_id, subnet_id=subnet_id) client.add_router_interface(router_id, subnet_id=subnet_id)