Skip to content

Commit

Permalink
Update network.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shawaj authored Oct 16, 2024
1 parent fc5c935 commit 01f2208
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw_diag/utilities/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ def setup_hostname():

if INITIAL_HOSTNAME_OVERRIDE != "false":
hostname = INITIAL_HOSTNAME_OVERRIDE
logging.info("Using hostname override from env var!")
else:
hostname = "nebra-%s.local" % hostname_suffix
logging.info("No hostname override, using default!")

balena_supervisor = BalenaSupervisor.new_from_env()
balena_supervisor.set_hostname(hostname)
Expand Down

0 comments on commit 01f2208

Please sign in to comment.