8000 Catch Route53 Record Sets without TTL by QuinnyPig · Pull Request #7767 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

Catch Route53 Record Sets without TTL #776 8000 7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Conversation

QuinnyPig
Copy link
Contributor

Alias records, for example, should explicitly not have a TTL set, as it's derived from the TTL of the target.

Alias records, for example, should explicitly not have a TTL set, as it's derived from the TTL of the target.
@QuinnyPig QuinnyPig requested a review from giograno as a code owner March 1, 2023 00:12
Copy link
Member
@giograno giograno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @QuinnyPig! 🙏

Comment on lines +41 to +43
if "TTL" in attrs:
if isinstance(attrs["TTL"], str):
attrs["TTL"] = int(attrs["TTL"])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if "TTL" in attrs:
if isinstance(attrs["TTL"], str):
attrs["TTL"] = int(attrs["TTL"])
if isinstance(ttl := attrs.get("TTL"), str):
attrs["TTL"] = int(ttl)

We could avoid the nested ifs with something like this.

@thrau thrau merged commit ba4ee37 into localstack:master Mar 1, 2023
@thrau
Copy link
Member
thrau commented Mar 1, 2023

looked safe to merge, we'll have to check what's going on with the CI with community PRs

@QuinnyPig QuinnyPig deleted the patch-2 branch March 1, 2023 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0