From ae93cece2a443872b5589dd28b285a02ade8780e Mon Sep 17 00:00:00 2001 From: sticky-note Date: Mon, 5 Feb 2024 16:13:25 +1100 Subject: [PATCH] chore(module): removed `SixRedirectImporter` from Salt. Salt hasn't shipped six since Salt 3004 --- _modules/powerdns.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_modules/powerdns.py b/_modules/powerdns.py index b0ecafe..ad6f54f 100644 --- a/_modules/powerdns.py +++ b/_modules/powerdns.py @@ -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 @@ -97,7 +97,7 @@ def zone_exists(name): except PDNSException as e: return False - + return True def get_zone(name): @@ -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):