URL:
https://github.com/freeipa/freeipa/pull/3288
Author: flo-renaud
Title: #3288: dnsrecord-mod: allow to modify ttl without passing the record
Action: opened
PR body:
"""
### dnsrecord-mod: allow to modify ttl without passing the record
The command `ipa dnsrecord-mod <zone> <record> --ttl ` requires to provide at
least one record to modify. When none is specified, it prompts by proposing each of the
existing records, for instance:
```
$ ipa dnsrecord-mod
ZZZZZ.org ns11 --ttl=86400
No option to modify specific record provided.
Current DNS record contents:
A record: xxx.xxx.xxx.xxx
AAAA record: xxxx:xx
Modify A record 'xxxx.xxxx.xxxx.xxxx'? Yes/No (default No):
Modify AAAA record 'xxxx:xx'? Yes/No (default No):
ipa: ERROR: No options to modify a specific record provided.
```
The admin should be able to modify the TTL value without re-entering the record
information. The issue happens because of an internal check that forgot to consider
'dnsttl' as a valid standalone modification.
Fixes:
https://pagure.io/freeipa/issue/7982
### XMLRPC tests: add new test for ipa dsnrecord-mod $ZONE $RECORD --ttl
The test suite did not have any test for modification of the TTL of an existing DNS
record.
Related:
https://pagure.io/freeipa/issue/7982
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3288/head:pr3288
git checkout pr3288