Fix invalid type_key

This commit is contained in:
Joshua Boniface 2021-06-13 21:20:10 -04:00
parent 1cbc66dccf
commit 30a160d5ff
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ def getDHCPLeaseInformation(zkhandler, vni, mac_address):
hostname = zkhandler.read((f'network.{type_key}', vni, f'{type_key}.hostname', mac_address))
ip4_address = zkhandler.read((f'network.{type_key}', vni, f'{type_key}.ip', mac_address))
if type_key == 'dhcp4_leases':
if type_key == 'lease':
timestamp = zkhandler.read((f'network.{type_key}', vni, f'{type_key}.expiry', mac_address))
else:
timestamp = 'static'