Remove mutable method default
This commit is contained in:
parent
98593108a0
commit
b19b9430a1
@ -49,8 +49,10 @@ def enable_pocket(pocket):
|
||||
sources.write(line)
|
||||
|
||||
|
||||
def get_host_ip(hostname=unit_get('private-address')):
|
||||
def get_host_ip(hostname=None):
|
||||
try:
|
||||
if not hostname:
|
||||
hostname=unit_get('private-address')
|
||||
# Test to see if already an IPv4 address
|
||||
socket.inet_aton(hostname)
|
||||
return hostname
|
||||
|
Loading…
Reference in New Issue
Block a user