libs/tools: fix missing default in resolve_identifier()

This commit is contained in:
Franzi 2020-11-08 10:41:41 +01:00
parent b00b2aa245
commit e36dbf0222
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -25,7 +25,7 @@ def resolve_identifier(repo, identifier):
for ip in config.get('ipv4', set()):
found_ips.add(ip_address(ip))
if node.metadata.get('external_ipv4'):
if node.metadata.get('external_ipv4', None):
found_ips.add(ip_address(node.metadata.get('external_ipv4')))
return found_ips