Skip to content

Commit

Permalink
Merge pull request #353 from maester365/Snozzberries-patch-1
Browse files Browse the repository at this point in the history
Update Test-MtCisaGlobalAdminRatio.ps1
  • Loading branch information
f-bader authored Jul 15, 2024
2 parents 013707d + 46fce38 commit 172e303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions powershell/public/cisa/entra/Test-MtCisaGlobalAdminRatio.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ Function Test-MtCisaGlobalAdminRatio {
} else {
$testResultMarkdown = "Your tenant does not have enough granular [role assignments]($link).`n`n%TestResult%"
}
$result = "Current Ratio: $([System.Math]::Round($ratio,2)) = $($globalAdministrators.Count) / $($otherAssignments.Count)`n"
$result = "Current Ratio: $([System.Math]::Round($ratio,2)) = $($globalAdministrators.Count) / $($otherAssignments.Count)`n`n"
$result += "Ratio >= 1 - $($ratio -ge 1)"
$testResultMarkdown = $testResultMarkdown -replace "%TestResult%", $result

Add-MtTestResultDetail -Result $testResultMarkdown

return $testResult
}
}

0 comments on commit 172e303

Please sign in to comment.