Skip to content

Commit

Permalink
make hostname configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidma committed Oct 11, 2024
1 parent 554e00e commit 33a10ab
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,9 @@ if __name__ == "__main__":
head_id = query_head_id()
nao = find_nao_with_head_id(configuration, head_id)

hostname = f"{configuration["hostname_prefix"]}{nao["number"]}"
wlan_configuration = compose_wlan_network(nao, configuration["team_number"])
wired_configuration = compose_wired_network(nao, configuration["team_number"])

write_to_file(WLAN_NETWORK_PATH, wlan_configuration)
write_to_file(WIRED_NETWORK_PATH, wired_configuration)
set_hostname(hostname)
set_hostname(nao["hostname"])

0 comments on commit 33a10ab

Please sign in to comment.