You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you do not want to create a zone on preview and set --populate-on-preview=false, and then change to a push keeping the option there, the zones will not be created.
To Reproduce
Create a config with a new zone
push with --populate-on-preview=false
See records failed to be created since the zones weren't created
Expected behavior
Zones are created even if --populate-on-preview=false is set on a push
DNS Provider
POWERDNS
Additional context
I'm using an ansible playbook (builtin.shell, along with an -e method=[preview|push]) to run the dnscontrol docker container, and it's easier to keep the --populate-on-preview=false as an argument to shell instead of trying to hand wave it in there when the method variable changes.
The text was updated successfully, but these errors were encountered:
Suggestion (but only if it's not a huge lift): Should we be rethinking the flags? We have --no-populate and --populate-on-preview. Maybe there should be a single flag that accepts values like: "preview" (create on preview), "push" (create on push), "both" (do both), "none" (The default).
I've opened #3402 with a quick one-line fix while we discuss the flags.
Should we be rethinking the flags? We have --no-populate and --populate-on-preview. Maybe there should be a single flag that accepts values like: "preview" (create on preview), "push" (create on push), "both" (do both), "none" (The default).
Consolidating these (and while we are at it, removing the unused --depopulate flag) sounds like a good idea. Personally, I would go for "preview" as the default for ease of use and allowing users to see the "actual diff" right away.
How would the deprecation look like? Do we warn users when they specified both old and the new flag? Which "wins" in that case? (I would lean towards the new one being authoritative.)
We generally remove flags with 3-4 months notice. We open a bug id that lists the timeline. We mention the change in the footer of release announcements so people see reminders many times until the change happens.
Describe the bug
When you do not want to create a zone on preview and set
--populate-on-preview=false
, and then change to a push keeping the option there, the zones will not be created.To Reproduce
--populate-on-preview=false
Expected behavior
Zones are created even if
--populate-on-preview=false
is set on a pushDNS Provider
Additional context
I'm using an ansible playbook (builtin.shell, along with an
-e method=[preview|push]
) to run the dnscontrol docker container, and it's easier to keep the--populate-on-preview=false
as an argument to shell instead of trying to hand wave it in there when the method variable changes.The text was updated successfully, but these errors were encountered: