fixed minor styling issue
This commit is contained in:
parent
4ca2e02381
commit
2f2ebdcf35
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue