fix: force reorder — all defs before if __name__
This commit is contained in:
parent
3149b15cef
commit
3a80e1067a
1 changed files with 2 additions and 2 deletions
|
|
@ -439,8 +439,6 @@ def start_debug():
|
|||
finally:
|
||||
print(f"\nRestarting wallarm-{n['name']}...")
|
||||
run(f"docker start wallarm-{n['name']} 2>/dev/null || bash {BASE}/{n['name']}/start.sh", timeout=30)
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
||||
def update_nodes():
|
||||
|
|
@ -468,3 +466,5 @@ def update_nodes():
|
|||
str(nc.get("upstream_port","80")), "",
|
||||
nc.get("mode","monitoring"))
|
||||
print(f"✅ {name} updated.")
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Reference in a new issue