Return correct data type for provisioning relays
This commit is contained in:
parent
22e853a3f7
commit
7c9903bca2
|
@ -82,7 +82,7 @@ def provisionRelay(num, network): # provision user and network data
|
||||||
def provisionMultipleRelays(net, relaysNeeded):
|
def provisionMultipleRelays(net, relaysNeeded):
|
||||||
if not main.config["ChanKeep"]["Provision"]:
|
if not main.config["ChanKeep"]["Provision"]:
|
||||||
warn(f"Asked to create {relaysNeeded} relays for {net}, but provisioning is disabled")
|
warn(f"Asked to create {relaysNeeded} relays for {net}, but provisioning is disabled")
|
||||||
return 0
|
return []
|
||||||
numsProvisioned = []
|
numsProvisioned = []
|
||||||
for i in range(relaysNeeded):
|
for i in range(relaysNeeded):
|
||||||
num, alias = main.network[net].add_relay()
|
num, alias = main.network[net].add_relay()
|
||||||
|
|
Loading…
Reference in New Issue