question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

octodns-dump does not respect YamlProvider configuration

See original GitHub issue

I 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:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yzguycommented, Apr 13, 2022

@viranch –lenient is the flag for the CLI

0reactions
github-actions[bot]commented, Jul 14, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found