Files
freeipa/ipaserver
Florence Blanc-Renaud 7364c268eb ipa host-add --ip-address: properly handle NoNameservers
When ipa host-add --ip-address is called but no DNS server is able to answer
for the reverse zone, get_reverse_zone raises a NoNameservers exception.
The exception is not managed by add_records_for_host_validation, and this
leads to the command exiting on failure with an InternalError:
    $ ipa host-add testhost.ipadomain.com --ip-address 172.16.30.22
    ipa: ERROR: an internal error has occurred
A traceback is also logged in httpd error_log.

This commit properly handles the exception, and adds a test.

https://pagure.io/freeipa/issue/7397

Reviewed-By: Christian Heimes <cheimes@redhat.com>
2018-02-12 17:30:52 +01:00
..
2018-02-07 12:56:41 +01:00
2018-02-07 17:27:11 +01:00
2010-12-20 17:19:53 -05:00
2017-06-01 09:24:24 +02:00
2018-01-31 16:03:19 +01:00
2016-10-20 18:43:37 +02:00
2017-12-06 16:54:04 +01:00