Skip to content
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

Fix: Organization Policy can't be updated if max_ttl and default_ttl … #925

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

TomerHeber
Copy link
Collaborator

…are nil

Issue & Steps to Reproduce / Feature Request

fixes #924

Solution

When applying the API call: defaultTtl or maxTtl are an empty string, convert them to nil.

@tomer-landesman
Copy link
Contributor

can you add a UT for that?

Copy link
Contributor

@tomer-landesman tomer-landesman left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@github-actions github-actions bot added ready to merge PR approved - can be merged once the PR owner is ready and removed pending final review labels Aug 5, 2024
@TomerHeber TomerHeber merged commit c7ba92b into main Aug 5, 2024
5 checks passed
@TomerHeber TomerHeber deleted the fix-org-policy-ttl-path-nil-#924 branch August 5, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-client fix ready to merge PR approved - can be merged once the PR owner is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Organization Policy can't be updated if max_ttl and default_ttl are nil
2 participants