Files
freeipa/ipaserver/plugins
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
..
2010-12-20 17:19:53 -05:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2017-03-27 19:08:26 +02:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2018-02-09 08:57:41 +01:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2017-09-18 11:44:08 +02:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2017-12-12 12:53:21 +01:00
2018-02-09 08:57:41 +01:00
2017-08-29 12:55:25 +02:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2017-03-27 19:08:26 +02:00
2018-01-09 07:53:28 +01:00
2017-03-27 19:08:26 +02:00
2017-03-27 19:08:26 +02:00
2018-01-31 16:03:19 +01:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2017-09-08 15:42:07 +02:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2016-08-17 16:55:49 +02:00