diff options
Diffstat (limited to 'pkb_client/helper.py')
| -rw-r--r-- | pkb_client/helper.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/pkb_client/helper.py b/pkb_client/helper.py deleted file mode 100644 index 0c08167..0000000 --- a/pkb_client/helper.py +++ /dev/null @@ -1,15 +0,0 @@ -def parse_dns_record(record: dict) -> dict: - """ - Parse the DNS record. - Replace the ttl and prio string values with the int values. - - :param record: the unparsed DNS record dict - - :return: the parsed dns record dict - """ - if record.get("ttl", None) is not None: - record["ttl"] = int(record["ttl"]) - if record.get("prio", None) is not None: - record["prio"] = int(record["prio"]) - - return record |
