Skip to content
Snippets Groups Projects
Commit 9c853894 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

ipaserver_test: Do not use zone_overlap_check for domain name validation

The use of zone_overlay_check for the domain name validation is not good
for a repeated execution of the server deployment where setup_dns is
enabled. The zone overlay check will fail with "DNS zone X already exists
in DNS". zone_overlay_check is later on used in dns.install_check so it is
not needed to do it here also.

Fixes issues #164 (domain option validator should not call zone overlap..)
parent 1dd2b54e
No related branches found
No related tags found
No related merge requests found
...@@ -719,12 +719,7 @@ def main(): ...@@ -719,12 +719,7 @@ def main():
msg="File %s does not exist." % options.dirsrv_config_file) msg="File %s does not exist." % options.dirsrv_config_file)
# domain_name # domain_name
if options.setup_dns and not options.allow_zone_overlap and \ # Validation is done later on in ipaserver_prepare dns.install_check
options.domain_name is not None:
try:
check_zone_overlap(options.domain_name, False)
except ValueError as e:
ansible_module.fail_json(msg=str(e))
# dm_password # dm_password
with redirect_stdout(ansible_log): with redirect_stdout(ansible_log):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment