Commit 072ca100 authored by Michael Tremer's avatar Michael Tremer

location: Print country name if possible

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 8084b33a
......@@ -292,7 +292,12 @@ class CLI(object):
# Print country
if network.country_code:
print(format % (_("Country"), network.country_code))
country = db.get_country(network.country_code)
print(format % (
_("Country"),
country.name if country else network.country_code),
)
# Print AS information
if network.asn:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment