mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 07:22:07 +03:00
7f93905e45
After v6.3.0-rc1~64 a lease can have infinite expiry time. This
means that the expiration time will appear as a value of zero.
Do the expiration check only if the expiration time is not zero.
Fixes: 97a0aa2467
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
33 lines
815 B
Plaintext
33 lines
815 B
Plaintext
[
|
|
{
|
|
"ip-address": "192.168.122.197",
|
|
"mac-address": "52:54:00:a4:6f:91",
|
|
"hostname": "fedora",
|
|
"expiry-time": 1900000002
|
|
},
|
|
{
|
|
"ip-address": "192.168.122.198",
|
|
"mac-address": "52:54:00:a4:6f:92",
|
|
"hostname": "fedora",
|
|
"expiry-time": 1900000001
|
|
},
|
|
{
|
|
"ip-address": "192.168.122.254",
|
|
"mac-address": "52:54:00:3a:b5:0c",
|
|
"hostname": "gentoo",
|
|
"expiry-time": 2000000000
|
|
},
|
|
{
|
|
"ip-address": "192.168.122.2",
|
|
"mac-address": "52:54:00:11:22:33",
|
|
"expiry-time": 2000000000
|
|
},
|
|
{
|
|
"ip-address": "192.168.122.3",
|
|
"mac-address": "52:54:00:a4:6f:91",
|
|
"hostname": "fedora",
|
|
"client-id": "01:52:54:00:a4:6f:91",
|
|
"expiry-time": 0
|
|
}
|
|
]
|