Skip to content

Commit dde5c6f

Browse files
committed
Changed name of the host variable
1 parent e068900 commit dde5c6f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

functions/New-PDCClone.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ function New-PDCClone {
128128
# Make up the data from the network path
129129
try {
130130
[uri]$uri = New-Object System.Uri($Destination)
131-
$networkHost = $uri.Host
131+
$uriHost = $uri.Host
132132
}
133133
catch {
134134
Stop-PSFFunction -Message "The destination path $Destination is not valid" -ErrorRecord $_ -Target $Destination
135135
return
136136
}
137137

138138
# Setup the computer object
139-
$computer = [PsfComputer]$networkHost
139+
$computer = [PsfComputer]$uriHost
140140

141141
if (-not $computer.IsLocalhost) {
142142
$command = "Convert-PDCLocalUncPathToLocalPath -UncPath '$ImageNetworkPath'"

functions/New-PDCImage.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ function New-PDCImage {
147147
# Make up the data from the network path
148148
try {
149149
[uri]$uri = New-Object System.Uri($ImageNetworkPath)
150-
$networkHost = $uri.Host
150+
$uriHost = $uri.Host
151151
}
152152
catch {
153153
Stop-PSFFunction -Message "The image network path $ImageNetworkPath is not valid" -ErrorRecord $_ -Target $ImageNetworkPath
154154
return
155155
}
156156

157157
# Setup the computer object
158-
$computer = [PsfComputer]$networkHost
158+
$computer = [PsfComputer]$uriHost
159159

160160
if (-not $computer.IsLocalhost) {
161161
$command = "Convert-PDCLocalUncPathToLocalPath -UncPath '$ImageNetworkPath'"

0 commit comments

Comments
 (0)