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: initialise test otp to an empty map #2919

Merged
merged 3 commits into from
Nov 26, 2024
Merged

fix: initialise test otp to an empty map #2919

merged 3 commits into from
Nov 26, 2024

Conversation

sweatybridge
Copy link
Contributor

@sweatybridge sweatybridge commented Nov 26, 2024

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

If user declares an empty [sms.test_otp] without any entries, auth config would show a diff with remote set to nil.

This causes unnecessary config update being enqueued on api.

What is the new behavior?

Always initialise a non-nil map to avoid this problem.

Additional context

Add any other context or screenshots.

@sweatybridge sweatybridge merged commit ab95a72 into develop Nov 26, 2024
9 checks passed
@sweatybridge sweatybridge deleted the init-map branch November 26, 2024 11:05
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.

1 participant