Revert "Reformat project"
This reverts commit 64e3e1160aa76d191740342ab3edc68807f890fb.
This commit is contained in:
@@ -6,9 +6,7 @@ class AutoCommand:
|
||||
def __init__(self, *args):
|
||||
self.auto(*args)
|
||||
|
||||
def auto(
|
||||
self, addr, authed, data, obj, spl, success, failure, info, incUsage, length
|
||||
):
|
||||
def auto(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
|
||||
if authed:
|
||||
if length == 1:
|
||||
for i in main.network.keys():
|
||||
@@ -16,15 +14,9 @@ class AutoCommand:
|
||||
info("Skipping %s - first relay exists" % i)
|
||||
else:
|
||||
num, alias = main.network[i].add_relay(1)
|
||||
success(
|
||||
"Successfully created first relay on network %s with alias %s"
|
||||
% (i, alias)
|
||||
)
|
||||
success("Successfully created first relay on network %s with alias %s" % (i, alias))
|
||||
provision.provisionRelay(num, i)
|
||||
success(
|
||||
"Started provisioning network %s on first relay for alias %s"
|
||||
% (i, alias)
|
||||
)
|
||||
success("Started provisioning network %s on first relay for alias %s" % (i, alias))
|
||||
main.saveConf("network")
|
||||
return
|
||||
elif length == 2:
|
||||
@@ -35,15 +27,9 @@ class AutoCommand:
|
||||
failure("First relay exists on %s" % spl[1])
|
||||
return
|
||||
num, alias = main.network[spl[1]].add_relay(1)
|
||||
success(
|
||||
"Successfully created relay %i on network %s with alias %s"
|
||||
% (num, spl[1], alias)
|
||||
)
|
||||
success("Successfully created relay %i on network %s with alias %s" % (num, spl[1], alias))
|
||||
provision.provisionRelay(num, spl[1])
|
||||
success(
|
||||
"Started provisioning network %s on relay %s for alias %s"
|
||||
% (spl[1], num, alias)
|
||||
)
|
||||
success("Started provisioning network %s on relay %s for alias %s" % (spl[1], num, alias))
|
||||
main.saveConf("network")
|
||||
return
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user