diff options
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/dns.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index 0e04a287e..89e0b19cb 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -836,9 +836,10 @@ class DNSRecord(Str): label = self.part_label_format % (self.rrtype, unicode(part.label)) option_group = self.option_group_format % self.rrtype flags = list(part.flags) + ['dnsrecord_part', 'virtual_attribute',] - if not part.required: flags.append('dnsrecord_optional') + if not self.supported: + flags.append("no_option") return part.clone_rename(name, cli_name=cli_name, |