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

IntuneDeviceConfigurationPolicyAndroidOpenSourceProject: Fixed policy assignment retrieval when Id is from other tenant, bogus or null #4399

Merged
merged 6 commits into from
Mar 12, 2024

Conversation

ricmestre
Copy link
Contributor

@ricmestre ricmestre commented Mar 1, 2024

Pull Request (PR) description

This PR fixes the issue I reported on #3971 where an Id might come from another tenant, or even be null since it's not mandatory, and then it failed retrieving the policy assignment due to that.

While making the tests with this fix I also noted that the CIM instances (in this case Assignments) were not being tested properly and Test-TargetResource always returned $false even when it was correct, so while here I also fixed the compare logic by using the same code already used in several other resources.

This Pull Request (PR) fixes the following issues

@ricmestre ricmestre requested a review from NikCharlebois as a code owner March 1, 2024 12:57
@NikCharlebois NikCharlebois merged commit 0071a63 into microsoft:Dev Mar 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants