From ba8c5a92b31e25a134d369e400b2a883e774d692 Mon Sep 17 00:00:00 2001 From: Vaerh Date: Thu, 9 May 2024 19:37:37 +0300 Subject: [PATCH] fix(TimeEquall): Crash when using store_leases_disk in routeros_ip_dhcp_server_config Fixes #447 --- routeros/provider_schema_helpers.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routeros/provider_schema_helpers.go b/routeros/provider_schema_helpers.go index 869715bb..8521c907 100644 --- a/routeros/provider_schema_helpers.go +++ b/routeros/provider_schema_helpers.go @@ -602,6 +602,11 @@ var ( return true } + // #447 routeros_ip_dhcp_server_config.store_leases_disk == "immediately" + if old == "immediately" || new == "immediately" { + return old == new + } + // Compare intervals: oDuration, err := ParseDuration(old) if err != nil {