From aad6c59f49e5385ba98a2ad1008363574a122e7b Mon Sep 17 00:00:00 2001 From: John D Pell Date: Wed, 19 May 2021 22:19:17 -0400 Subject: [PATCH 1/2] =?UTF-8?q?Change=20=E2=80=98WINDIR=E2=80=99=20to=20?= =?UTF-8?q?=E2=80=98SYSTEMROOT=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/DSCResources/DSC_HostsFile/DSC_HostsFile.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/DSCResources/DSC_HostsFile/DSC_HostsFile.psm1 b/source/DSCResources/DSC_HostsFile/DSC_HostsFile.psm1 index 279af660..89a8802a 100644 --- a/source/DSCResources/DSC_HostsFile/DSC_HostsFile.psm1 +++ b/source/DSCResources/DSC_HostsFile/DSC_HostsFile.psm1 @@ -222,7 +222,7 @@ function Get-HostEntry $HostName ) - $hostPath = "$env:windir\System32\drivers\etc\hosts" + $hostPath = "$env:SystemRoot\System32\drivers\etc\hosts" $allHosts = Get-Content -Path $hostPath | Where-Object -FilterScript { [System.String]::IsNullOrEmpty($_) -eq $false -and $_.StartsWith('#') -eq $false From 759522b69b61df265a5c48de0dc46c392ded449b Mon Sep 17 00:00:00 2001 From: John D Pell Date: Wed, 19 May 2021 22:56:07 -0400 Subject: [PATCH 2/2] Minor change to environment variable lookup. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47fe5f28..c6555583 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated build to use `Sampler.GitHubTasks` - Fixes [Issue #489](https://github.com/dsccommunity/NetworkingDsc/issues/489). - Added support for publishing code coverage to `CodeCov.io` and Azure Pipelines - Fixes [Issue #491](https://github.com/dsccommunity/NetworkingDsc/issues/491). +- Minor change to environment variable lookup. ## [8.2.0] - 2020-10-16