File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -32,21 +32,24 @@ def launch(
32
32
)
33
33
34
34
config = _get_config (
35
- image ,
36
- faucet_config ,
35
+ image = image ,
36
+ faucet_config = faucet_config ,
37
+ network_ids = [f .ChainID for f in faucets ],
37
38
)
38
39
plan .add_service (service_name , config )
39
40
40
41
41
42
def _get_config (
42
43
image ,
43
44
faucet_config ,
45
+ network_ids ,
44
46
):
45
47
"""Get the ServiceConfig for the op-faucet service.
46
48
47
49
Args:
48
50
image (str): The image to use for the op-faucet service.
49
51
faucet_config (artifact): The config artifact for the op-faucet service.
52
+ network_ids (list of str): The network IDs to use for the op-faucet service.
50
53
"""
51
54
mount_path = "/config"
52
55
cmd = [
@@ -66,8 +69,8 @@ def _get_config(
66
69
),
67
70
},
68
71
labels = {
69
- "op.kind" : "faucet"
70
- # TODO Add network IDs
72
+ "op.kind" : "faucet" ,
73
+ "op. network.id" : "-" . join ( network_ids ),
71
74
},
72
75
files = {
73
76
mount_path : faucet_config ,
You can’t perform that action at this time.
0 commit comments