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 config size limit by validating modules in cache #647

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Gijsreyn
Copy link
Contributor

PR Summary

This PR addresses issue #640

@Gijsreyn
Copy link
Contributor Author

Here you go @SteveL-MSFT.

@SteveL-MSFT SteveL-MSFT added this to the 3.0-Approved milestone Feb 18, 2025
@Gijsreyn Gijsreyn force-pushed the fix-config-size-limit branch from aa8bf9e to 1ee3537 Compare February 19, 2025 00:48
@Gijsreyn Gijsreyn requested a review from SteveL-MSFT February 19, 2025 00:48
# check if all the desired modules are in the cache
$moduleInput | ForEach-Object {
if ($dscResourceCache.type -notcontains $_) {
('ERROR: DSC resource {0} module not found.' -f $_) | Write-DscTrace
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize that other instances in this script have the ERROR: prefix, but this becomes redundant if the trace is of error type since dsc will also add a Error type prefix to the message. Since this is an error, this should be:

Suggested change
('ERROR: DSC resource {0} module not found.' -f $_) | Write-DscTrace
('DSC resource {0} module not found.' -f $_) | Write-DscTrace -Operation Error

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.

2 participants