From 30a160d5ff59c706f4973049f7e763a7a2c7fc2f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 13 Jun 2021 21:20:10 -0400 Subject: [PATCH] Fix invalid type_key --- daemon-common/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/network.py b/daemon-common/network.py index af0f7048..67f7bdea 100644 --- a/daemon-common/network.py +++ b/daemon-common/network.py @@ -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'