Verified Commit 71227fba authored by Martin Matějek's avatar Martin Matějek
Browse files

branch: fix typo

parent 3b9d40ec
......@@ -5,7 +5,7 @@ def get_os_branch_or_version():
"""Get OS branch or version from uci."""
with EUci() as uci:
mode = uci.get("updater", "turris", "mode", dtype=str)
value = uci.get("update", "turris", mode, dtype=str, default="")
value = uci.get("updater", "turris", mode, dtype=str, default="")
if mode == "version" and not value:
# fallback to branch when no version is provided
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment