Skip to content
Snippets Groups Projects
Commit 5561ac37 authored by Florent Thiery's avatar Florent Thiery
Browse files

skip default values in dns record test

parent ad2c0e80
No related branches found
No related tags found
No related merge requests found
......@@ -85,11 +85,19 @@ conf_servers = (
'MONITOR_SERVER_NAME',
'CM_SERVER_NAME',
)
conf_server_defaults = (
'mediaserver',
'monitor',
'campusmanager',
)
for s in conf_servers:
hostname = conf.get(s)
ok = check_dns(hostname, ip)
if not ok:
all_ok = False
if hostname not in conf_server_defaults:
ok = check_dns(hostname, ip)
if not ok:
all_ok = False
if not all_ok:
sys.exit(1)
......
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