Skip to content

Commit

Permalink
cable-guy: fix falling back to default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Feb 11, 2025
1 parent f5d4aa1 commit a80d4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/cable_guy/api/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, default_configs: List[NetworkInterface]) -> None:
# Load settings and do the initial configuration
if not self.settings.load():
logger.error(f"Failed to load previous settings. Using default configuration: {default_configs}")
self.settings.root = {"content": [entry.dict() for entry in default_configs]}
self.settings.root = {"version": 0, "content": [entry.dict() for entry in default_configs]}

logger.info("Loading previous settings.")
for item in self.settings.root["content"]:
Expand Down

0 comments on commit a80d4c4

Please sign in to comment.