Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document --force requirements #1170

Open
jaspermayone opened this issue May 5, 2024 · 1 comment
Open

Document --force requirements #1170

jaspermayone opened this issue May 5, 2024 · 1 comment

Comments

@jaspermayone
Copy link

Hi,

I have browsed the docs for octodns and cannot seem to find what triggers a need for --force on a dns sync. We use octodns in production and need this info for creating workflows around running --force.

Thank you!

@ross
Copy link
Contributor

ross commented May 5, 2024

There's a bit of info in the usage for the param:

parser.add_argument(
'--force',
action='store_true',
default=False,
help='Acknowledge that significant changes are being '
'made and do them',
)

Otherwise errors are thrown when situations are encountered that require careful human review before aknowleding the changes and --forceing them.

class RootNsChange(UnsafePlan):
def __init__(self):
super().__init__('Root NS record change, force required')
class TooMuchChange(UnsafePlan):
def __init__(
self,
why,
update_pcent,
update_threshold,
change_count,
existing_count,
name,
):
msg = (
f'[{name}] {why}, {update_pcent:.2f}% is over {update_threshold:.2f}% '
f'({change_count}/{existing_count}), force required'
)
super().__init__(msg)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants