Files
freeipa/ipatests
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
..
2013-06-17 19:22:50 +02:00
2015-10-22 18:34:46 +02:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2016-10-20 18:43:37 +02:00
2017-12-12 16:16:58 +01:00