fixed minor styling issue

This commit is contained in:
Guillaume Raffy 2024-11-25 14:52:33 +01:00
parent 4ca2e02381
commit 2f2ebdcf35
1 changed files with 3 additions and 3 deletions

View File

@ -66,12 +66,12 @@ def get_ip():
try:
# doesn't even have to be reachable
s.connect(('10.254.254.254', 1))
IP = s.getsockname()[0]
ip_address = s.getsockname()[0]
except Exception:
IP = '127.0.0.1'
ip_address = '127.0.0.1'
finally:
s.close()
return IP
return ip_address
VlanId = str # eg 'SIMPA', 'REC_PHYS'