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] Fix lgpo.get functions not returning all boolean values #64414

Merged
merged 5 commits into from
Jun 10, 2023

Conversation

twangboy
Copy link
Contributor

@twangboy twangboy commented Jun 2, 2023

What does this PR do?

Fixes an issue with the LGPO execution module where not all boolean values were being returned. This was affecting the lgpo.set state that was expecting to see the boolean settings present, but were instead missing.

The problem had to do with the eTree Element object. Sometimes it is an Element with a length of 0 that would not be reported. Other times it is an Element with a length greater than 0, which would be reported.

What issues does this PR fix or reference?

Fixes:

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 June 2, 2023 21:08
@twangboy twangboy requested review from Ch3LL and removed request for a team June 2, 2023 21:08
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Fix lgpo.get functions not returning all boolean values [3006.x] Fix lgpo.get functions not returning all boolean values Jun 2, 2023
@twangboy twangboy temporarily deployed to ci June 3, 2023 02:29 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 3, 2023 02:31 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 3, 2023 02:31 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 3, 2023 02:32 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 3, 2023 02:47 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 3, 2023 02:52 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 3, 2023 08:53 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 3, 2023 08:53 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 3, 2023 08:53 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 3, 2023 08:53 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 3, 2023 08:53 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 3, 2023 08:53 — with GitHub Actions Inactive
Ch3LL
Ch3LL previously approved these changes Jun 5, 2023
@twangboy twangboy force-pushed the fix_63473 branch 2 times, most recently from 1ae4806 to bfd701e Compare June 5, 2023 21:20
@twangboy twangboy temporarily deployed to ci June 6, 2023 05:16 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 6, 2023 05:16 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 6, 2023 05:17 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 6, 2023 05:32 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 6, 2023 05:35 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 7, 2023 15:51 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 7, 2023 15:51 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 7, 2023 15:51 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 7, 2023 15:51 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 7, 2023 16:07 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 7, 2023 16:09 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 8, 2023 21:36 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 8, 2023 21:37 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 8, 2023 21:37 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 8, 2023 21:44 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 8, 2023 21:52 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 8, 2023 21:57 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 9, 2023 19:54 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 9, 2023 19:54 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 9, 2023 19:54 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 9, 2023 19:54 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 9, 2023 19:54 — with GitHub Actions Inactive
@twangboy twangboy temporarily deployed to ci June 9, 2023 19:55 — with GitHub Actions Inactive
@Ch3LL Ch3LL requested a review from s0undt3ch June 9, 2023 20:45
@s0undt3ch s0undt3ch merged commit a90f62d into saltstack:3006.x Jun 10, 2023
@bcowman
Copy link

bcowman commented Oct 22, 2024

This PR has fixed some GPO Policies, but then I tried these 2 GPO polices using 3007.1. They work the first time but fail subsequently.

"Interactive logon: Number of previous logons to cache (in case domain controller is not available)"
"Network access: Named Pipes that can be accessed anonymously"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants