I ran into a problem when updating a layer that contains an integer, e.g. integer configuration option. The logs were duplicated because layer was updated / replanned always, since the current plan had integer converted to string, but my plan had an integer.
@dimaqq 's assumption here is that perhaps it's allowed to set pebble layer with val: 42 which is then read back as val: "42". If that's the case, charmer's version of the layer never compares equal to the current, and the charm keeps re-planning on every event.
From the survey
@dimaqq 's assumption here is that perhaps it's allowed to set pebble layer with
val: 42
which is then read back asval: "42"
. If that's the case, charmer's version of the layer never compares equal to the current, and the charm keeps re-planning on every event.