Closed ross closed 1 year ago
@ross I locally applied the change, but this only fixes the situation with enforce_order: false
in combination with reordering the entries in the configuration. So the issue brought up in #35 is not (yet) fixed with this PR. I still cannot have the config with enforce_order: true
or without explicitly setting the flag (the implied default is True
in def safe_load(stream, enforce_order=True):
)
In short: the PR is good, it fixes an issue, but not #35.
In short: the PR is good, it fixes an issue, but not #35.
Hrm. OK. I guess I ran into a persistent change problem trying to reproduce the issue and then lost the thread on the cause of the persistent change you ran into.
As a consequence, with the enforce_order flag set, every run creates a change, even though nothing changed.
I'll give reproducing the original issue another go.
@viranch please check this, I guess that @ross is right that he wants to merge this one prior to #37.
Does this need tests? LGTM either way!
I started out expecting to add some, but there were already things hitting the new case. I guess I could probably add something that verifies that "extra" info in the config section doesn't cause problems now (and did before.)
Cribbed from https://github.com/octodns/octodns-ns1/issues/35#issuecomment-1487065395
The false/persistent update is coming from
_extra_changes
Which is triggered when
_monitor_is_match
returnsFalse
:https://github.com/octodns/octodns-ns1/blob/bc542be4ac73d3914adcfd5d1ce2f56ff484e119/octodns_ns1/__init__.py#L1196-L1203
Printing out the two
Looks like they've added a new keys to the
config
section:tls_add_verify
andipv6
and the current method of comparison sees that as a diff.Working on a PR/solution now.
/cc Found when trying to reproduce https://github.com/octodns/octodns-ns1/issues/35 @istr