Skip to content

Commit

Permalink
Version 3.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
adferrand committed Oct 25, 2020
1 parent 5b78aeb commit 3033d72
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master - CURRENT

## 3.4.4 - 25/10/2020

## 3.4.3 - 07/09/2020
### Modified
* Improve versions constraints by declaring latest major versions known to work with Lexicon
Expand Down
12 changes: 10 additions & 2 deletions lexicon/providers/gandi.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,21 @@ def _create_record(self, rtype, name, content):
if current_values:
record = {"rrset_values": current_values + [content]}
if self._get_lexicon_option("ttl"):
record["rrset_ttl"] = self._get_lexicon_option("ttl") if self._get_lexicon_option("ttl") >= 300 else 300
record["rrset_ttl"] = (
self._get_lexicon_option("ttl")
if self._get_lexicon_option("ttl") >= 300
else 300
)
self._put(url, record)
else:
record = {"rrset_values": [content]}
# add the ttl, if this is a new record
if self._get_lexicon_option("ttl"):
record["rrset_ttl"] = self._get_lexicon_option("ttl") if self._get_lexicon_option("ttl") >= 300 else 300
record["rrset_ttl"] = (
self._get_lexicon_option("ttl")
if self._get_lexicon_option("ttl") >= 300
else 300
)
self._post(url, record)
LOGGER.debug("create_record: %s", True)
return True
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "dns-lexicon"
version = "3.4.3"
version = "3.4.4"
description = "Manipulate DNS records on various DNS providers in a standardized/agnostic way"
license = "MIT"
keywords = [
Expand Down

0 comments on commit 3033d72

Please sign in to comment.