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

Merged
merged 8 commits into from
Feb 22, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Resolve remark
Gijsreyn committed Feb 19, 2025
commit aa8bf9e1ce7b188cf87d8c0a176bbb9ffbde02d9
3 changes: 1 addition & 2 deletions powershell-adapter/psDscAdapter/powershell.resource.ps1
Original file line number Diff line number Diff line change
@@ -157,8 +157,7 @@ switch ($Operation) {
# check if all the desired modules are in the cache
$moduleInput | ForEach-Object {
if ($dscResourceCache.type -notcontains $_) {
$trace = @{'Debug' = ('ERROR: DSC resource {0} module not found.' -f $_)} | ConvertTo-Json -Compress
$host.ui.WriteErrorLine($trace)
('ERROR: DSC resource {0} module not found.' -f $_) | Write-DscTrace
exit 1
}
}