Skip to content

Commit 22c1c43

Browse files
committed
Fixed NumberOfRetries property in output (for real) +semver: build
1 parent f0cdf1b commit 22c1c43

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased]
8-
9-
## [0.1.1] - 2022-09-19
7+
## [Unreleased]
8+
9+
### Fixed
10+
- The `NumberOfRetries` was incorrectly reported in the output object (it really is fixed this time)
11+
12+
## [0.1.1] - 2022-09-19
1013
### Added
1114
- New parameters for `Invoke-CMSnowflakePatching`: `RebootTimeoutMins`, `InstallUpdatesTimeoutMins`, `SoftwareUpdateScanCycleTimeoutMins`, `InvokeSoftwareUpdateInstallTimeoutMins`. These were previously hardcoded values within the function.
1215

@@ -17,6 +20,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1720
### Added
1821
- Initial release
1922

20-
[Unreleased]: https://github.com/codaamok/PSCMSnowflakePatching/compare/0.1.1..HEAD
21-
[0.1.1]: https://github.com/codaamok/PSCMSnowflakePatching/compare/0.1.0..0.1.1
23+
[Unreleased]: https://github.com/codaamok/PSCMSnowflakePatching/compare/0.1.1..HEAD
24+
[0.1.1]: https://github.com/codaamok/PSCMSnowflakePatching/compare/0.1.0..0.1.1
2225
[0.1.0]: https://github.com/codaamok/PSCMSnowflakePatching/tree/0.1.0

src/Public/Invoke-CMSnowflakePatching.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,13 @@ function Invoke-CMSnowflakePatching {
415415
switch ($AllowReboot) {
416416
$true {
417417
# If updates are successfully installed, they will no longer appear in WMI
418-
if ($LatestUpdates.Count -eq 0) { return $true }
418+
if ($LatestUpdates.Count -eq 0) {
419+
return $true
420+
}
421+
else {
422+
$AttemptsCounter++
423+
return $false
424+
}
419425
}
420426
$false {
421427
# Don't want anything other than pending hard/soft reboot, or installed

0 commit comments

Comments
 (0)