Skip to content
Snippets Groups Projects
Commit 6536a73f authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

try import pydbus

parent ed2e6294
No related branches found
No related tags found
No related merge requests found
......@@ -6,11 +6,15 @@ Checks that DNS records are provided by the customer servers are correctly set
"""
from pathlib import Path
import pydbus
import re
import subprocess
import sys
try:
import pydbus
except:
pass
sys.path.append(str(Path(__file__).parents[1].resolve()))
# pylint: disable=wrong-import-position
......@@ -121,6 +125,7 @@ def check_resolver(conf: dict, resolvers: set, ip: str) -> tuple:
def main():
print("Check DNS settings:")
if not u.supported_platform():
u.info("Platform not supported")
exit(2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment