Skip to content

Commit

Permalink
fix: upgrade path condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Dec 13, 2024
1 parent 7459de4 commit b52709b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imageroot/update-module.d/20gateway_default
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import json
config = json.load(open('config.json'))

if config['dhcp-server']['enabled']:
if 'gateway' not in config['dhcp-server'] and config['dhcp-server']['gateway'] == '':
if 'gateway' not in config['dhcp-server']:
# the field is left empty, to avoid assigning a default value
# this is because if in any case the interface the dhcp-server is running
# has two or more ips, a default gateway might cause way too many issues
Expand Down

0 comments on commit b52709b

Please sign in to comment.