machine: return default values for find public interface

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-04-15 17:27:36 -04:00
parent 47c6245c3f
commit d3003a1584
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A
1 changed files with 5 additions and 1 deletions

View File

@ -419,7 +419,11 @@ class Machine:
"address": addr,
"family": fam
}
return {}
return {
"ifname": "",
"address": src_ip or "",
"family": ""
}
def _find_public_ip(self) -> Optional[str]:
# Check for an IPv4 Source IP