Skip to content

Commit e7fb8d2

Browse files
author
Ryan Kaufman
committed
linting
1 parent de56e1a commit e7fb8d2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • project/alcatraz/alcatraz/clusters

project/alcatraz/alcatraz/clusters/local.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ async def _remove_firewall_stub(self, cid: str, veth: str, bridge_if: str, ctr_i
485485
It also removes the INPUT rules done by _ensure_input_block.
486486
"""
487487
# deletes the FORWARD jump
488-
488+
489489
await async_subprocess_run(
490490
[
491491
"bash",
@@ -1089,9 +1089,9 @@ async def add_container_network_block_via_ip_tables(self, cid_prefix: str) -> No
10891089
raise RuntimeError(f"No container with id prefix {cid_prefix} in this cluster")
10901090

10911091
await self._populate_ctr_chain(container)
1092-
1092+
10931093
await self._ensure_input_block(container)
1094-
1094+
10951095
try:
10961096
await self._check_shell_command(
10971097
"python -c \"import urllib.request; urllib.request.urlopen('http://example.com', timeout=5)\""
@@ -1109,10 +1109,10 @@ async def _populate_ctr_chain(self, container: docker.models.containers.Containe
11091109
# The function _remove_firewall_stub currently just clears and deletes this chain entirely, so modifying what happens inside of the chain is okay.
11101110
# If something major is changed, like adding a jump to a new chain, make sure things are properly cleaned up by _remove_firewall_stub.
11111111
await asyncio.to_thread(container.reload)
1112-
1112+
11131113
cid = container.id[:12]
11141114
attrs = container.attrs
1115-
1115+
11161116
ctr_ip = next(iter(container.attrs["NetworkSettings"]["Networks"].values()))["IPAddress"] # e.g. 172.18.0.2
11171117
net_config = await self.get_container_net_config()
11181118
subnet = net_config["subnet"]

0 commit comments

Comments
 (0)