Remove mutable method default
This commit is contained in:
parent
45ea91b852
commit
ebcc7629c7
|
@ -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