mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
pylint: Iterate through dictionaries
The consider-iterating-dictionary check disable never worked before (notice the missing comma in pylintrc). Fix the rest of the dict iteration. https://pagure.io/freeipa/issue/6874 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
f7fc3a3fc1
commit
353d4934af
@ -2920,7 +2920,7 @@ class dnszone_find(DNSZoneBase_find):
|
||||
if options.get('forward_only', False):
|
||||
search_kw = {}
|
||||
search_kw['idnsname'] = [revzone.ToASCII() for revzone in
|
||||
REVERSE_DNS_ZONES.keys()]
|
||||
REVERSE_DNS_ZONES]
|
||||
rev_zone_filter = ldap.make_filter(search_kw,
|
||||
rules=ldap.MATCH_NONE,
|
||||
exact=False,
|
||||
@ -3094,7 +3094,7 @@ class dnsrecord(LDAPObject):
|
||||
|
||||
if not zone_len:
|
||||
allowed_zones = ', '.join([unicode(revzone) for revzone in
|
||||
REVERSE_DNS_ZONES.keys()])
|
||||
REVERSE_DNS_ZONES])
|
||||
raise errors.ValidationError(name='ptrrecord',
|
||||
error=unicode(_('Reverse zone for PTR record should be a sub-zone of one the following fully qualified domains: %s') % allowed_zones))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user