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

azure_rm_securitygroup: improve idempotency for protocol #1064

Merged
merged 3 commits into from
Jan 12, 2023

Conversation

akira6592
Copy link
Contributor

SUMMARY

If you enter the protocol name from the Azure Portal, it will be uppercase (e.g. TCP).On the other hands, azure_rm_securitygroup module can specify protocol with capitalized (e.g. Tcp).

Due to this difference unintentional changed occurs.

This PR allows to diff protocol name by case-insensitive for improving idempotency.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • azure_rm_securitygroup module
ADDITIONAL INFORMATION

Added a test to verify that from a state with rules using TCP, running the same rules in the azure_rm_securitygroup module specifying Tcp does not result in changed. It works fine by my environment.

@Fred-sun Fred-sun added ready_for_review The PR has been modified and can be reviewed and merged medium_priority Medium priority labels Jan 12, 2023
@xuzhang3
Copy link
Collaborator

@akira6592 LGTM

@xuzhang3 xuzhang3 merged commit 124132d into ansible-collections:dev Jan 12, 2023
@akira6592
Copy link
Contributor Author

Thank you for the merge.

@akira6592 akira6592 deleted the improve-idempotency-nsg branch January 12, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium_priority Medium priority ready_for_review The PR has been modified and can be reviewed and merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants