fix: message when fw.conf is empty
This commit is contained in:
parent
076b801eda
commit
31013b3e82
1 changed files with 3 additions and 0 deletions
|
|
@ -390,6 +390,9 @@ def main():
|
|||
def deploy_all():
|
||||
print("Deploying all from fw.conf...")
|
||||
cfg = load_config()
|
||||
if not cfg.get("nodes"):
|
||||
print("No nodes found in /opt/fw/fw.conf")
|
||||
return
|
||||
for name, nc in cfg.get("nodes", {}).items():
|
||||
if is_deployed(name):
|
||||
print(f"✓ {name} already deployed")
|
||||
|
|
|
|||
Loading…
Reference in a new issue