fix with clause

pull/21869/head
Eric Gribkoff 5 years ago
parent dc504622e7
commit df470c3e68
  1. 2
      tools/run_tests/run_xds_tests.py

@ -493,7 +493,7 @@ def start_xds_client():
stats_port=STATS_PORT,
qps=QPS)
bootstrap_path = None
with bootstrap_file as tempfile.NamedTemporaryFile(delete=False):
with tempfile.NamedTemporaryFile(delete=False) as bootstrap_file:
bootstrap_file.write(
BOOTSTRAP_TEMPLATE.format(node_id=socket.gethostname()))
bootstrap_path = boostrap_file.name

Loading…
Cancel
Save