Skip to content

Commit 0d95523

Browse files
committed
Fix DSC resource get
1 parent 155277c commit 0d95523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/DSCPullServerWeb/DSCResources/DscPullServerWeb/DscPullServerWeb.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function Get-TargetResource
6868

6969
# Get Website and the full path for web.config file
7070
$websiteItem = Get-Item -Path "IIS:\Sites\$EndpointName"
71-
$webConfigPath = Join-Path -Path $website.physicalPath -ChildPath 'web.config'
71+
$webConfigPath = Get-Website -Name $EndpointName | Select-Object -ExpandProperty PhysicalPath | Join-Path -ChildPath 'web.config'
7272

7373
# Get the IIS port from the binding information and the physical path
7474
$PhysicalPath = $websiteItem.physicalPath

0 commit comments

Comments
 (0)