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: try:
# doesn't even have to be reachable # doesn't even have to be reachable
s.connect(('10.254.254.254', 1)) s.connect(('10.254.254.254', 1))
IP = s.getsockname()[0] ip_address = s.getsockname()[0]
except Exception: except Exception:
IP = '127.0.0.1' ip_address = '127.0.0.1'
finally: finally:
s.close() s.close()
return IP return ip_address
VlanId = str # eg 'SIMPA', 'REC_PHYS' VlanId = str # eg 'SIMPA', 'REC_PHYS'