Merge "fix router context to cleanup routers resources"

This commit is contained in:
Jenkins 2017-07-03 20:22:10 +00:00 committed by Gerrit Code Review
commit 80bbdeb5d6

View File

@ -103,7 +103,8 @@ class Router(context.Context):
self.context.get("users", []))):
self.context["tenants"][tenant_id]["routers"] = []
scenario = neutron_utils.NeutronScenario(
context={"user": user, "task": self.context["task"]}
context={"user": user, "task": self.context["task"],
"owner_id": self.context["owner_id"]}
)
for i in range(self.config["routers_per_tenant"]):
router = scenario._create_router(kwargs)