Clients using pre-2.88 Python API will get a ConversionError in output validation:
1 2 3 4 5 6 7 8 9 10 11 12
#! /usr/bin/ipa console import pprint result = api.Command['dnszone_add'].run( 'test.example.', idnssoamname='ns.test.example.', force=True, version='2.87', ) pprint.pprint(result)
results in:
ConversionError: invalid 'idnsname': must be DNS name
The problem is that result['value'] is checked to be a DNSName regardless of API version.
result['value']
Martin, care to take a look?
Replying to [ticket:4367 pviktori]:
Clients using pre-2.88 Python API will get a ConversionError in output validation: Clients using whatever API version will get a ConversionError when you use str value where unicode value is required (this is not limited to dnszone_add).
Closing as worksforme as per agreement on a triage meeting.
Yup, works for me. Ideally we'd want a better message, but this is probably only visible to developers
Metadata Update from @pviktori: - Issue assigned to mbasti - Issue set to the milestone: 0.0 NEEDS_TRIAGE
Login to comment on this ticket.