[BugFix] Handle error when sub doesn't exist in check-cbsensor #226
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview/Summary
This Pull Request addresses an error occurring in the
main.ps1
runbook, specifically related to the execution of theCheck-CBSSensors
module. The error was caused by an issue with setting the "Comments" property, which was not found on the object.This PR fixes/adds/changes/removes
Check-CBSSensors
module where the "Comments" property was not found, causing a failure in the runbook execution.Fixes v2.1.0: Error in the main.ps1 runbook #221
Breaking Changes
Testing Evidence
The fix was tested by running the
main.ps1
runbook after applying the changes. The runbook successfully executed theCheck-CBSSensors
module without errors related to the missing "Comments" property.As part of this Pull Request I have
main
branch./tools/Update-ModuleVersions.ps1
script).