Skip to content

Commit

Permalink
Add apostrophes to support wildcard DNS entries. Fixes issue Azure#365.
Browse files Browse the repository at this point in the history
  • Loading branch information
tigeli committed Nov 1, 2024
1 parent 75dc26c commit e3a575a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'AzDanglingDomain'

# Version number of this module.
ModuleVersion = '0.0.9'
ModuleVersion = '0.0.10'

# Supported PSEditions
# CompatiblePSEditions = @('Desktop', 'Core')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ Function Process-CNameList {

#Azurefd can have subdomains also which we cannot mark as dangled
if ($item.FQDN -match "azurefd.net") {
$count = (($AzResourcesHash.GetEnumerator() | Where { $item.FQDN -match $_.key }) | Measure-Object).Count
$count = (($AzResourcesHash.GetEnumerator() | Where { $item.FQDN -match '$_.key' }) | Measure-Object).Count
if ($count -gt 0) {
[void]$AzCNameMatchingResources.add($item)
}
Expand Down

0 comments on commit e3a575a

Please sign in to comment.