mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
dns: normalize record type read interactively in dnsrecord_add
When dnsrecord_add is called without options in interactive mode, it prompts the user to enter a record type. The record type is expected to be upper case further in the code, which causes non-upper case values not to work correctly. Fix this issue by upper casing the value after it is read. https://fedorahosted.org/freeipa/ticket/6203 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
08b7683130
commit
afea961631
@ -175,6 +175,8 @@ class dnsrecord_add(MethodOverride):
|
||||
if rrtype is None:
|
||||
return
|
||||
|
||||
rrtype = rrtype.upper()
|
||||
|
||||
try:
|
||||
name = record_name_format % rrtype.lower()
|
||||
param = self.params[name]
|
||||
|
Loading…
Reference in New Issue
Block a user