Skip to content

Commit

Permalink
fix: Fix the AlwaysPresentNotUserProvided helper to ignore stored e…
Browse files Browse the repository at this point in the history
…mpty values as RouterOS started returning such in 7.15
  • Loading branch information
dokmic committed Jun 25, 2024
1 parent 76d9d40 commit f800613
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions routeros/provider_schema_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,10 +671,6 @@ var (
// Prevents the need of hardcode values for default values, as those are harder to track over time/versions of
// routeros
AlwaysPresentNotUserProvided = func(k, old, new string, d *schema.ResourceData) bool {
if old == "" {
return false
}

value := d.GetRawConfig()

// For lists and sets, the key will look like `something.12345` or `something.#`.
Expand Down

0 comments on commit f800613

Please sign in to comment.