Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/nethsec/inventory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,14 @@ def info_fqdn(uci: EUci):
return anonymize(system[section][option], uci)
return ''

def info_timezone(uci: EUci):
system = uci.get_all('system')
for section in system:
for option in system[section]:
if option == 'zonename':
return system[section][option]
return ''

def info_kernel_version(uci: EUci):
try:
with open('/proc/version', 'r') as f:
Expand Down