Return correct data type for provisioning relays

This commit is contained in:
Mark Veidemanis 2022-08-11 20:29:01 +01:00
parent 4c3bab6d96
commit 571a527f43
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def provisionRelay(num, network): # provision user and network data
def provisionMultipleRelays(net, relaysNeeded):
if not main.config["ChanKeep"]["Provision"]:
warn(f"Asked to create {relaysNeeded} relays for {net}, but provisioning is disabled")
return 0
return []
numsProvisioned = []
for i in range(relaysNeeded):
num, alias = main.network[net].add_relay()