Skip to content

Commit 5528ef3

Browse files
committed
tank: remove config_dir
1 parent 43b7d4d commit 5528ef3

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/warnet/tank.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44

55
import logging
6-
from pathlib import Path
76

87
from backends import ServiceType
98
from warnet.lnnode import LNNode
@@ -24,9 +23,8 @@
2423
class Tank:
2524
DEFAULT_BUILD_ARGS = "--disable-tests --with-incompatible-bdb --without-gui --disable-bench --disable-fuzz-binary --enable-suppress-external-warnings --enable-debug "
2625

27-
def __init__(self, index: int, config_dir: Path, warnet):
26+
def __init__(self, index: int, warnet):
2827
self.index = index
29-
self.config_dir = config_dir
3028
self.warnet = warnet
3129
self.network_name = warnet.network_name
3230
self.bitcoin_network = warnet.bitcoin_network
@@ -84,9 +82,6 @@ def parse_graph_node(self, node):
8482
self.warnet, self, impl, image, self.warnet.container_interface, cb_image
8583
)
8684

87-
self.config_dir = self.warnet.config_dir / str(self.suffix)
88-
self.config_dir.mkdir(parents=True, exist_ok=True)
89-
9085
logger.debug(
9186
f"Parsed graph node: {self.index} with attributes: {[f'{key}={value}' for key, value in graph_properties.items()]}"
9287
)
@@ -95,11 +90,9 @@ def parse_graph_node(self, node):
9590
def from_graph_node(cls, index, warnet, tank=None):
9691
assert index is not None
9792
index = int(index)
98-
config_dir = warnet.config_dir / str(f"{index:06}")
99-
config_dir.mkdir(parents=True, exist_ok=True)
10093
self = tank
10194
if self is None:
102-
self = cls(index, config_dir, warnet)
95+
self = cls(index, warnet)
10396
node = warnet.graph.nodes[index]
10497
self.parse_graph_node(node)
10598
return self

0 commit comments

Comments
 (0)