Skip to content

Commit

Permalink
chore(module): removed SixRedirectImporter from Salt
Browse files Browse the repository at this point in the history
Salt hasn't shipped six since Salt 3004
  • Loading branch information
sticky-note committed Feb 5, 2024
1 parent 45345f9 commit 479a468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _modules/powerdns.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
import json
import re
from pprint import pformat
from six import string_types

# Import salt libs
from salt.ext.six import string_types
from salt.exceptions import get_error_message as _get_error_message


Expand Down Expand Up @@ -97,7 +97,7 @@ def zone_exists(name):
except PDNSException as e:
return False


return True

def get_zone(name):
Expand All @@ -111,7 +111,7 @@ def get_zone(name):
except PDNSException as e:
return "Exception while getting zone: '%s'" % (e)


return [{'name': record.name, 'type': record.type, 'ttl': record.ttl, 'records': [record2 for record2 in record.records]} for record in zone.records]

def get_record(zone, name, rtype):
Expand Down

0 comments on commit 479a468

Please sign in to comment.