-
Notifications
You must be signed in to change notification settings - Fork 3
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
Introduce a function to extract all includes from bind configuration file #81
Conversation
2408550
to
60a2846
Compare
We need to support chroot because we store all named configurations in a chroot environment for named (/var/named/chroot/) |
e27f12f
to
b48f93b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase before merge.
pleskdistup/common/src/dns.py
Outdated
includes: typing.List[str] = [] | ||
|
||
def get_all_includes_from_bind_config(config_file: str, chroot_dir: str = "") -> List[str]: | ||
includes: List[str] = [] | ||
|
||
if config_file.startswith("/"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: there's os.path.isabs()
for that.
…file It should support chroot directories because we use chroot environment for bind configurations in plesk. Also we should not encounter relative paths in include directives because bind handles they in a preatty specific way (starting from the directory bind was started)
b48f93b
to
b9df963
Compare
No description provided.