Implement Ctrl-C handling and fix a large number of small bugs
This commit is contained in:
@@ -14,11 +14,11 @@ class AutoCommand:
|
||||
if not spl[2].isdigit():
|
||||
failure("Must be integer, not %s" % spl[2])
|
||||
return
|
||||
|
||||
id, alias = main.network[spl[1]].add_relay(int(spl[2]))
|
||||
relayNum = int(spl[2])
|
||||
id, alias = main.network[spl[1]].add_relay(relayNum)
|
||||
success("Successfully created relay %s on network %s with alias %s" % (str(id), spl[1], alias))
|
||||
main.saveConf("network")
|
||||
rtrn = provision.provisionRelay(int(spl[2]), spl[1])
|
||||
rtrn = provision.provisionRelay(relayNum, spl[1])
|
||||
success("Started provisioning network %s on relay %s for alias %s" % (spl[1], spl[2], rtrn))
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user