octodns-dump does not respect YamlProvider configuration
See original GitHub issueI prefer to not skip defaults (like TTL) in the yamls when dumping. So as a work-around, I set it to an odd unlikely number in the config, but I noticed octodns-dump command does not really respect the provider config:
providers:
cfg:
class: octodns.provider.yaml.YamlProvider
directory: ./src/dev/test
default_ttl: 9
enforce_order: False
I think this line here doesn’t take any provider configs into account https://github.com/octodns/octodns/blob/master/octodns/manager.py#L570.
May be we add the ability to set these provider configs as CLI switches since there can be multiple YamlProvider configs in the config file and dump would not know which one to pick. Or provide one switch to disable omitting default values.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Provider Module Import Issue · Issue #41 · octodns ... - GitHub
config/production.yaml 2017-05-24T19:42:34 [140628278757184] ERROR Manager _get_provider_class: Unable to import module octodns.provider.dyn.
Read more >How To Deploy and Manage Your DNS using OctoDNS on ...
OctoDNS is an infrastructure-as-code tool that allows you to ... Add the sample config.yaml configuration for your DNS provider to the file.
Read more >How, and why, we scaled up to a Multi-DNS architecture (Part 3)
The source can either be a YAML file, a DNS provider or a BIND zone file. ... Two relevant tools that OctoDNS provides...
Read more >octodns Changelog - pyup.io
Now that it's used as it needed to be YamlProvider overrides. Provider.supports and just always says Yes so that any dynamically registered types...
Read more >octodns - PyPI
If you'd like to install a version that has not yet been released in a repetable/safe manner ... providers: config: class: octodns.provider.yaml.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@viranch –lenient is the flag for the CLI
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.