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

[3006.x] Allow configuring firewall on non-English versions of Windows #66424

Merged
merged 3 commits into from May 14, 2024

Conversation

twangboy
Copy link
Contributor

@twangboy twangboy commented Apr 23, 2024

What does this PR do?

Allows Salt to configure the firewall on non-Windows systems. This replaces netsh with the Set-NetFireWallProfile powershell command under the hood. The function definitions and returns remain the same.

What issues does this PR fix or reference?

Fixes #61534

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@twangboy twangboy requested a review from a team as a code owner April 23, 2024 17:09
@twangboy twangboy requested review from dwoz and removed request for a team April 23, 2024 17:09
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Allow configuring firewall on non-English versions of Windows [3006.x] Allow configuring firewall on non-English versions of Windows Apr 23, 2024
@twangboy twangboy self-assigned this Apr 23, 2024
@twangboy twangboy added the test:full Run the full test suite label Apr 23, 2024
raise CommandExecutionError("LGPO NETSH: An unknown error occurred")

# Remove the junk
for setting in list(settings.keys()):
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
for setting in list(settings.keys()):
for setting in list(settings):

This is enough, not blocking merge because of it though.

@s0undt3ch s0undt3ch merged commit b6a9cc9 into saltstack:3006.x May 14, 2024
276 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test:full Run the full test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants