Skip to content

Commit

Permalink
fix(TimeEquall): Crash when using store_leases_disk in routeros_ip_dh…
Browse files Browse the repository at this point in the history
…cp_server_config

Fixes #447
  • Loading branch information
vaerh committed May 9, 2024
1 parent a755ab0 commit ba8c5a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions routeros/provider_schema_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ba8c5a9

Please sign in to comment.