diff --git a/certy.ps1 b/certy.ps1 index f26a7ed..ddf5a51 100644 --- a/certy.ps1 +++ b/certy.ps1 @@ -75,8 +75,8 @@ function Get-CommonZoneFromHosts { if (-not $fqdnHosts -or $fqdnHosts.Count -eq 0) { return "" } $commonSuffix = $null - foreach ($host in $fqdnHosts) { - $clean = $host.Trim().TrimEnd(".") + foreach ($hostName in $fqdnHosts) { + $clean = $hostName.Trim().TrimEnd(".") $labels = $clean -split "\." if ($labels.Count -lt 2) { continue } $zoneLabels = $labels[1..($labels.Count - 1)]