You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Scripts/Helpers/Confirm-PolicyDefinitionsInPolicySetMatch.ps1
+31-31Lines changed: 31 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -42,37 +42,37 @@ function Confirm-PolicyDefinitionsInPolicySetMatch {
42
42
43
43
# Validate the Azure definitionVersion with the local definitionVersion, if the local definitionVersion doesn't exist and the Azure definitionVersion is not equal to latest policy version then return false
44
44
# This addresses an error that occurs when there is a null value in the definitionVersion field that cropped up when we removed the variable prior to processing to fix a bug spotted in Build-HydrationDeploymentPlans where the values were retained, and adversely affecting the update information.
45
-
try {
46
-
if ($null-eq$item1.definitionVersion-and$null-eq$item2.definitionVersion) {
47
-
# Compare-SemanticVersion -Version1 0 -Version2 0 is always 0, so we forego the calculation and set it
48
-
$definitionVersionMatches=0
49
-
}
50
-
elseif ($null-eq$item1.definitionVersion) {
51
-
# Compare-SemanticVersion -Version1 0 -Version2 (anything not 0) is always -1, so we forego the calculation and set it
0 commit comments